• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cross platform Cocoa/ObjC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cross platform Cocoa/ObjC?
      • From: Scott Thompson <email@hidden>
References: 
 >Cross platform Cocoa/ObjC? (From: Stefan Pantke <email@hidden>)

  • Prev by Date: Re: how to add multiple-selection pull-down menu in IB?
  • Next by Date: Re: NSTextView scrolling issue.
  • Previous by thread: Cross platform Cocoa/ObjC?
  • Next by thread: Re: Cross platform Cocoa/ObjC?
  • Index(es):
    • Date
    • Thread