Re: get the NSWindow instance
Re: get the NSWindow instance
- Subject: Re: get the NSWindow instance
- From: j o a r <email@hidden>
- Date: Tue, 30 Jul 2002 14:17:32 +0200
I assume that you've created your window in Interface Builder? In your
controller class, the one represented by the blue cube in IB, create a
new outlet for your window (in the same way you created the other
outlets for buttons and text fields) and drag a connector from the blue
cube to your window. Look in your Cocoa tutorial text book for more
information on how to create your user inteface in Interface Builder,
and if you don't have such a book - go get one! :)
An alternative approach, provided that you have access to the instances
of your buttons and text fields, is to grab a reference to the window
like this:
NSWindow *myWindow = [myButton window];
j o a r
On Tuesday, July 30, 2002, at 02:08 , Chong Hiu Pun wrote:
In my cocoa application, there is a NSWindow contained a few button and
textfield. How can I get my NSWindow instance(I want to control the
NSWindow
behaviour by code) ?
_______________________________________________
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.