On 10 Apr 2008, at 14:24, Valentin Dan wrote:

What’s the best way to create a connection to a server in Cocoa + Objective-C ?

It depends what you're trying to achieve.

If your server is also implemented using Cocoa/ObjC, Distributed Objects is quite a nice solution. Or you could use SOAP (e.g. via the WebServices framework). Or you could use any of the things listed here:

  <http://www.cocoadev.com/index.pl?ObjectLibraryNetwork>

Or you could use sockets via NSStream (or CFStream). Or indeed NSURLConnection et al.

There are probably lots of other ways too, but it really depends on what you're doing. You'll have to be more specific about what you want if you want a more specific answer.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to