• 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: Multithreaded Cocoa Document Application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Multithreaded Cocoa Document Application? (From: "Rick Ekle" <email@hidden>)
 >Re: Multithreaded Cocoa Document Application? (From: Andrew Merenbach <email@hidden>)
 >Re: Multithreaded Cocoa Document Application? (From: Rick Ekle <email@hidden>)
 >Re: Multithreaded Cocoa Document Application? (From: Andrew Merenbach <email@hidden>)
 >Re: Multithreaded Cocoa Document Application? (From: Milo Bird <email@hidden>)

  • Prev by Date: Calling a setter from setObjectValue causes crash in NSCell subclass
  • Next by Date: SIGBUS on declarations
  • Previous by thread: Re: Multithreaded Cocoa Document Application?
  • Next by thread: Re: Multithreaded Cocoa Document Application?
  • Index(es):
    • Date
    • Thread