Re: Document App: IB connections 101
Re: Document App: IB connections 101
- Subject: Re: Document App: IB connections 101
- From: jerome LAURENS <email@hidden>
- Date: Tue, 23 Jul 2002 17:09:51 +0200
Le mardi 23 juillet 2002, ` 09:11 AM, Ondra Cada a icrit :
On Tuesday, July 23, 2002, at 05:50 , Mike Willhide wrote:
Can anyone offer a thought as to the best way to connect an instance
associated with a documnet (created in the MyDocument.nib) to a unique
instance of another class that exists in the application? IE: How
would I
go about making a connection between a view in a document window, and a
"global" tool manager associated with an application tool bar or
something?
Generally, you use First Responder instead of a direct connection in
these cases.
if this is a "global" tool manager, it is certainly a sharedInstance of
some class. So you can create an instance of it in your nib file and
make the appropriate connection. If you implement correctly the
initWithCoder: to return the shared instance, any object instantiated in
any nib will be in fact the shared instance, and your connections will
point to the right manager.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.