I’ve just uploaded some code derived from the Objective-C wrapper I’ve shown in this post. You can find it in the “Projects” section, as usual and it’s simply a wrapper around the URL loading system of Cocoa, both for Macs and iPhones, providing a custom delegate protocol, so that you can handle the events raised by the wrapper:
The sample project, available in the zip file, shows how a simple Cocoa controller can interact with the Wrapper class as required. Enjoy!
Update, 2008-10-26: After a bug report from StuFF mc I’ve updated the code for a better support of POST and PUT requests, and also added a sample PHP file for a quick test of the functionalities.
Similar Posts:

6 Comments
11.17.2008
On your projects page, you mention that your RestWrapper was tested on the iPhone. Is it possible for you to post that iphone xcode project?
Thanks,
Jeff
11.18.2008
Hi Jeff, as soon as I can I will post a sample iPhone project (now we can!! :) using this class. Good idea!
Thanks!
11.18.2008
Hiya Jeff, I’ve just uploaded a very simple iPhone app which does the same (almost with the same interface) than the Leopard one. To be found in the projects page referenced in the post. Enjoy! :)
01.19.2009
Please check http://kosmaczewski.net/2009/01/19/objective-c-rest-client-update/ for a more updated version!
03.02.2009
Are you aware of the memory leaks in NSURLConnection? They pretty much render then entire class useless for production apps.
03.02.2009
@somaking I’ve read about it but I haven’t had problems with it yet.
Commenting