Re: Multithreaded Cocoa Document Application?
Re: Multithreaded Cocoa Document Application?
- Subject: Re: Multithreaded Cocoa Document Application?
- From: Andrew Merenbach <email@hidden>
- Date: Fri, 24 Aug 2007 10:15:31 -0700
Right. Mea culpa.
-- Andrew
On Aug 24, 2007, at 6:28 AM, Milo Bird wrote:
for communication, your best bet is probably
NSDistributedNotifications.
Distributed notifications are not suitable for communicating
between threads, as all distributed notifications that you send
will be received on the main thread. Distributed notifications are
for communicating between processes.
NSOperation is the API to use if you are coding for 10.5.
Otherwise, there are several options. I'd recommend YAMessageQueue:
http://www.2pi.dk/tech/cocoa/message_queue.html
Milo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden