multiple windows (dialogs) per nib (.xlib) file
multiple windows (dialogs) per nib (.xlib) file
- Subject: multiple windows (dialogs) per nib (.xlib) file
- From: John Yeh <email@hidden>
- Date: Thu, 28 May 2009 11:36:52 -0700
- Acceptlanguage: en-US
- Thread-topic: multiple windows (dialogs) per nib (.xlib) file
How do I open a specific window in a nib file? I tried to use the following code, but it displays ALL the windows in that nib file.
DialogController
-[id]init
{
self = [super initWithWindowNibName:@"MyNibName"];
}
DialogController *dialogController = [[DialogController alloc] init];
[NSApp runModalForWindow: [dialogController window];
This is sure to open all the windows. If I name the windows as "MyDialog1", "MyDialog2", and so on, how to render "MyDialog1" exclusively?
Thanks.
-John
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden