Re: NSNotificationCenter
Re: NSNotificationCenter
- Subject: Re: NSNotificationCenter
- From: Olivier Lanctôt <email@hidden>
- Date: Wed, 27 Apr 2005 17:24:05 -0400
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@hidden> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
--
Olivier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden