-
Website
http://toxicsoftware.com/ -
Original page
http://toxicsoftware.com/is_that_an_http_server_in_your_cocoa_application/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
schwa
20 comments · 2 points
-
Alexander Mikhalev
1 comment · 1 points
-
myxibrium
1 comment · 1 points
-
somegeekintn
1 comment · 1 points
-
Stewf
2 comments · 1 points
-
-
Popular Threads
-
ICE Amsterdam 09
3 weeks ago · 1 comment
-
ICE Amsterdam 09
It is quite easy to embed Twisted into a Cocoa app via PyObjC. It is even possible to inject said solution into a Cocoa app that is already running.
Because of the design of Twisted, the I/O happens on a thread, but the actual request handling happens in the main event loop. As a result, there is no need to deal with threading issues.
Combined with Nevow and MochiKit, one can relatively easily develop rich web based clients to your Cocoa app's internals.
I really should put a demo together.
Where I see the promise for your idea is for writing some interesting AJAX kinds of web applications in Cocoa.....
It handled just one type of request, a request to subscribe to a feed. The idea was that people could put a button on their site that linked to a url like http://127.0.0.1:5335/subscribe?url=http://some... -- and the request would then go to NetNewsWire on your desktop, which would subscribe to the feed. Easy one-click subscribing.
It wasn't my idea -- Radio UserLand was already doing this, and we figured we had to do the same thing.
(But then there was the issue of how to manage two aggregators that want to listen to the same port -- and then more apps that would come along and want to listen on that port too. I decided to remove the http server before it became something to fight over.)
But anyway -- I always thought the idea was interesting, that connection between web page and the desktop. (It doesn't have to be feed-subscribing, of course.)