Skip navigation.
 
mlRe: NSNotificationCenter
FROM : Olivier Lanctôt
DATE : Wed Apr 27 23:24:05 2005

Hi Joan.

What you want are several controllers (attached to a window) that will
be notified once one of them does action X.

This is easily done via NSNotificationCenter, however I suggest you
get a good Cocoa book or learn by analyzing other open source
applications.

But, to answer to your question, NSNotificationCenter would do the
job. The methods are clearly explained in the documentation... you
will need each document (or whatever you call the controllers attached
to a window) to subscribe to a particular notification. There are
several examples of that on the net.

Good luck.

By the way, I suggest you get a Gmail.com email address (instead of an
hotmail one) for the lists... I can send you one if you want, just
ask.

On 4/27/05, Joan RunTime <<email_removed>> wrote:
> Thank you, Robert.
>
> Hm, For example:a window X has a textField and a button. The user enters
> <word> to the textField and hits the button. Now window Y should be informed
> of window X with the value <word>. And then window Z will be informed of
> window Y...
>
> Do you know what I try to explain?
>
> Thank you again, Joan.
>
>
> >Hi,
> >do you really want window to make something? With another window?
> >
> >Robert
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>



--
Olivier

Related mailsAuthorDate
mlNSNotificationCenter Joan RunTime Apr 27, 21:14
mlRe: NSNotificationCenter Robert Cerny Apr 27, 22:58
mlRe: NSNotificationCenter Joan RunTime Apr 27, 23:16
mlRe: NSNotificationCenter Olivier Lanctôt Apr 27, 23:24
mlRe: NSNotificationCenter Ondra Cada Apr 27, 23:37