Posting notifications
Posting notifications
- Subject: Posting notifications
- From: "McLaughlin, Michael P." <email@hidden>
- Date: Mon, 25 Jan 2010 09:21:16 -0500
- Acceptlanguage: en-US
- Thread-topic: Posting notifications
Notification Programming Topics for Cocoa states
"A notification center delivers notifications to observers synchronously. In
other words, when posting a notification, control does not return to the
poster until all observers have received *and processed* the notification."
[my emphasis]
I was wondering exactly what "and processed" included in the statement
above.
If I post a named notification to the appDelegate and that delegate, upon
receipt, immediately calls func1() which calls func2() etc. where does this
"processed" chain stop? What if this chain terminates with exactly the same
notification that started it? Does this all build up a long, unterminated
chain or does it end earlier somehow? Tests with NSLog() would seem to
indicate that the latter occurs but it is not entirely clear from the
documentation.
Thanks -- and apologies for such a newbie query.
--
Mike McLaughlin
_______________________________________________
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