• 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: NSNotificationQueue and multithreading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationQueue and multithreading


  • Subject: Re: NSNotificationQueue and multithreading
  • From: Julien Guimont <email@hidden>
  • Date: Sat, 7 Feb 2004 19:35:18 -0500

Hello,

I just made something like that in my app. I found this doc file:///Developer/Documentation/Cocoa/Conceptual/Notifications/Tasks/ Threading.html#//apple_ref/doc/uid/20001289 . It should be helpful for your problem.

It does not use NotificationQueues but does some multi threading notifications.

Julien Guimont
www.juggysoft.com

Dear All:

I need to send a NSNotification from a different thread of execution.
Are the various NSNotificationQueue methods like dequeueNotification
and enqueueNotification thread-safe -- i.e. from thread A, if I have
thread B's notification queue, can I simply enqueue a notification
there and thread B will reliably get the notification? Or assuming I
don't want to use NSDistributedNotificationQueue (since I'm not
crossing tasks, only threads), is there some other method to get what I
want?

Cheers, Glen Low
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSSlider and live resize
  • Next by Date: Re: BigSQL Xcode and IB
  • Previous by thread: NSNotificationQueue and multithreading
  • Next by thread: Drawing onto NSImageView subclass (Newbie)
  • Index(es):
    • Date
    • Thread