Re: Very simple Cocoa question
Re: Very simple Cocoa question
- Subject: Re: Very simple Cocoa question
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 3 Jul 2001 19:57:39 +0200
On mardi, juillet 3, 2001, at 07:33 PM, Doug wrote:
Ah, ok...Thanks...that reference I snipped is handy too! I just tried
to do
this but now Interface Builder is saying that the window is undefined.
How
do I refer to a window I created in IB within my program? I need to
send a
message to my window, but I created it in Interface Builder so I don't
know
how to get an NSWindow pointer to send it to within my code.
Well add an outlet named myWindow_ to the MainController.
And create a connection between your MainController and the Window
TitleBar and choose the myWindow_ outlet.
Now you can refer to your Window with myWindow_ .
Don't forget to update the .h file of our MainController so that it
lists the myWindow_ IBOutlet id.