RE: get the NSWindow instance
RE: get the NSWindow instance
- Subject: RE: get the NSWindow instance
- From: "Shantanu Wadodkar" <email@hidden>
- Date: Tue, 30 Jul 2002 17:44:25 +0530
- Organization: Avesta Computers Pvt Ltd
Hay I know the Soln,,,
U have to create the Variable with that Class (ur NSWindow)type,,, using
the Mainmenu.nib
& now that window is Class var in the Application (i.e. main) class so
that will get the value by its won & u have all the things with U
Consider me as I work with java more than Obj-C
Thanks
Shantanu
Let me know.....
-----Original Message-----
From: email@hidden
[
mailto:email@hidden] On Behalf Of Chong Hiu Pun
Sent: Tuesday, July 30, 2002 5:38 PM
To: email@hidden
Subject: get the NSWindow instance
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) ?
I did the following but don't work:
-(void)applicationDidFinishLaunching:(NSNotification*)notif
{
gWin = [NSApp keyWindow];
}
gWin is nil!
_______________________________________________
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.
_______________________________________________
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.