• 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
Posting notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Posting notifications
      • From: Jens Alfke <email@hidden>
    • Re: Posting notifications
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: MVC design Q - remembering Core Data selections
  • Next by Date: Re: How to save/restore the screen of the window in user defaults?
  • Previous by thread: Re: How to save/restore the screen of the window in user defaults?
  • Next by thread: Re: Posting notifications
  • Index(es):
    • Date
    • Thread