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

Re: NSRunLoop and NSNotification


  • Subject: Re: NSRunLoop and NSNotification
  • From: Gregor Nobis <email@hidden>
  • Date: Thu, 8 Aug 2002 15:20:05 +0200

On Thursday, August 8, 2002, at 02:33 PM, Ondra Cada wrote:

On Thursday, August 8, 2002, at 10:55 , Gregor Nobis wrote:

When notifications are posted, does the notification center forward them immediately to all the observers even while the run loop is not running? Or do I have to call one of the -run methods to make them available to the observers?

Both, depending or what you want. Default is an immediate post. See NSNotificationQueue.html for details.

I had read that, but I'm working with NSFileHandle and in the docs for - (void)readInBackgroundAndNotify it says:

"Performs an asynchronous availableData operation on a file or communications channel and posts an NSFileHandleReadCompletionNotification to the client process' run loop. "

That's why I was wondering. I got a little confused because run loops are thread-specific while the default notification center belongs to the application.

Gregor
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSRunLoop and NSNotification
      • From: Ondra Cada <email@hidden>
References: 
 >Re: NSRunLoop and NSNotification (From: Ondra Cada <email@hidden>)

  • Prev by Date: Prgramming style (was: Accessors)
  • Next by Date: Re: Prgramming style (was: Accessors)
  • Previous by thread: Re: NSRunLoop and NSNotification
  • Next by thread: Re: NSRunLoop and NSNotification
  • Index(es):
    • Date
    • Thread