Re: NSRunLoop and NSNotification
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.