Re: Cross platform Cocoa/ObjC?
Re: Cross platform Cocoa/ObjC?
- Subject: Re: Cross platform Cocoa/ObjC?
- From: Andrew Farmer <email@hidden>
- Date: Sun, 6 Nov 2005 17:13:11 -0800
On 06 Nov 05, at 15:52, Stefan Pantke wrote:
I need to write a fast and cross-operating-system network application,
which reads stuff from one socket, processes the data and forwards it
to a third party. x-OS means OS X, Windows and Linux.
Any idea, how I might do this using ObjC or Cocoa?
Don't. Cocoa is primarily useful for creating GUI applications.
I know, I could use POSIX calls and C, but even that is probably
not fully
cross platform.
Au contraire. POSIX socket operations are much more portable than Cocoa
socket classes. The former will work on pretty much anything under the
sun - Windows, OS X, *nix, even OS 9, with some work - while the latter
will only run on OS X.
Don't be afraid to use POSIX calls! They don't bite.
For some information on using them, I'd recommend a Google search.
There's
a lot of material (and code!) out there - much more, in fact, than you'd
find for Cocoa socket operations.
Brief summary: Cocoa socket operations are best used for GUI
applications
which need to do network access.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden