Re: connecting objects from different NIB files?
Re: connecting objects from different NIB files?
- Subject: Re: connecting objects from different NIB files?
- From: "Joshua D. Orr" <email@hidden>
- Date: Tue, 06 Nov 2001 11:12:56 -0700
One way of doing it is to make a action in your document class (or you could
do it in you window control for your document if you wanted to). Go into
your nib file that contains the main menu. Create an action in the first
responder (I think that is what it is called) object in the nib file, it wis
the one with the picture of a 1. Make sure that both actions have the same
name (the one in the class and the one in the nib file). Now connect the
menu item to that action in the first responder. The first responder will
call the first action it sees with that name when it goes down the responder
chain. If there are no other actions with that name it should choose that
one. Further, if you have more then one document open, it will choose the
document that is currently the front most (the key/main window containing
the document).
>
Plez excuse the newbie question...
>
>
I am starting out with a simple document based example. I would like to
>
be able to use a main menu item to insert some text into the document. I
>
am not sure how to go about making the connection between objects from
>
the two nib files in interface builder.
>
>
Any pointers to get me going would be much appreciated,
>
>
John.
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev