<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>toxicsoftware.com - Latest Comments in Is that an HTTP server in your Cocoa application or are you just pleased to see me?</title><link>http://toxicsoftware.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 21 Apr 2009 11:24:55 -0000</lastBuildDate><item><title>Re: Is that an HTTP server in your Cocoa application or are you just pleased to see me?</title><link>http://toxicsoftware.com/is_that_an_http_server_in_your_cocoa_application/#comment-8486709</link><description>Hi. So can you please provide the the code for that application? Would be really appreciated!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Carlo</dc:creator><pubDate>Tue, 21 Apr 2009 11:24:55 -0000</pubDate></item><item><title>Re: Is that an HTTP server in your Cocoa application or are you just pleased to see me?</title><link>http://toxicsoftware.com/is_that_an_http_server_in_your_cocoa_application/#comment-1655920</link><description>Very early betas of NetNewsWire actually embedded an http server. This was before Lite 1.0 shipped.&lt;br&gt;&lt;br&gt;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 &lt;a href="http://127.0.0.1:5335/subscribe?url=http://some.feed/url" rel="nofollow"&gt;http://127.0.0.1:5335/subscribe?url=http://some...&lt;/a&gt; -- and the request would then go to NetNewsWire on your desktop, which would subscribe to the feed. Easy one-click subscribing.&lt;br&gt;&lt;br&gt;It wasn't my idea -- Radio UserLand was already doing this, and we figured we had to do the same thing.&lt;br&gt;&lt;br&gt;(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.)&lt;br&gt;&lt;br&gt;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.)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brent Simmons</dc:creator><pubDate>Tue, 21 Feb 2006 03:41:15 -0000</pubDate></item><item><title>Re: Is that an HTTP server in your Cocoa application or are you just pleased to see me?</title><link>http://toxicsoftware.com/is_that_an_http_server_in_your_cocoa_application/#comment-1655919</link><description>Maybe a job for a Sandvox plugin?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan Wight</dc:creator><pubDate>Mon, 20 Feb 2006 16:32:02 -0000</pubDate></item><item><title>Re: Is that an HTTP server in your Cocoa application or are you just pleased to see me?</title><link>http://toxicsoftware.com/is_that_an_http_server_in_your_cocoa_application/#comment-1655918</link><description>Great idea Jon -- I had actually considered something similar for Sandvox (though I had been thinking about custom URL schemes) but punted on it (for now at least) since webkit is so similar to viewing with Safari.  Still, it would be cool just so people could see what their site would look like with another browser.&lt;br&gt;&lt;br&gt;Where I see the promise for your idea is for writing some interesting AJAX kinds of web applications in Cocoa.....</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Wood</dc:creator><pubDate>Mon, 20 Feb 2006 15:22:18 -0000</pubDate></item><item><title>Re: Is that an HTTP server in your Cocoa application or are you just pleased to see me?</title><link>http://toxicsoftware.com/is_that_an_http_server_in_your_cocoa_application/#comment-1655917</link><description>Yeah Python (and by extension PyObjC) is great for things like this. But I had the code anyway and just needed to polish it up a tad and whip the demo up.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan Wight</dc:creator><pubDate>Fri, 17 Feb 2006 14:51:20 -0000</pubDate></item><item><title>Re: Is that an HTTP server in your Cocoa application or are you just pleased to see me?</title><link>http://toxicsoftware.com/is_that_an_http_server_in_your_cocoa_application/#comment-1655916</link><description>I have done this quite a few times with PyObjC and Twisted.&lt;br&gt;&lt;br&gt;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.&lt;br&gt;&lt;br&gt;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.&lt;br&gt;&lt;br&gt;Combined with Nevow and MochiKit, one can relatively easily develop rich web based clients to your Cocoa app's internals.&lt;br&gt;&lt;br&gt;I really should put a demo together.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bbum</dc:creator><pubDate>Fri, 17 Feb 2006 14:44:02 -0000</pubDate></item><item><title>Re: Is that an HTTP server in your Cocoa application or are you just pleased to see me?</title><link>http://toxicsoftware.com/is_that_an_http_server_in_your_cocoa_application/#comment-1655915</link><description>Very cool idea - currently for Cocoa Apps which I want to have an HTML front-end for I've worked with a Python Server with an XML socket connection to the app. But being able to directly hook into Cocoa code would be very nice.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrew Turner</dc:creator><pubDate>Fri, 17 Feb 2006 12:19:31 -0000</pubDate></item></channel></rss>