• 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: [Newbie] Communication between two Views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] Communication between two Views?


  • Subject: Re: [Newbie] Communication between two Views?
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 28 Jul 2008 20:41:42 -0500

On Jul 28, 2008, at 8:32 PM, I. Savant wrote:

[Using notifications is] certainly a way to accomplish one-way messaging "whenever it gets there", but it's not always appropriate. Notifications do not occur within the same run loop, so this method wouldn't work if you needed to, say, tell another controller to modify something before continuing to "the next step".

This is incorrect. Notifications are typically synchronous. They do not rely on the run-loop for delivery. The code which posts a notification does not proceed until all observers have received the notification.


(Notifications posted to a notification queue are an exception.)

Cheers,
Ken
_______________________________________________

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: [Newbie] Communication between two Views?
      • From: "I. Savant" <email@hidden>
References: 
 >Re: [Newbie] Communication between two Views? (From: julius <email@hidden>)
 >Re: [Newbie] Communication between two Views? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: [Newbie] Communication between two Views?
  • Next by Date: Re: Setting conditional breakpoint on Cocoa method?
  • Previous by thread: Re: [Newbie] Communication between two Views?
  • Next by thread: Re: [Newbie] Communication between two Views?
  • Index(es):
    • Date
    • Thread