Re: [Newbie] Communication between two Views?
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