• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
multiple windows (dialogs) per nib (.xlib) file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: multiple windows (dialogs) per nib (.xlib) file
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: issue porting resource files code from 10.4 to 10.5
  • Next by Date: Re: Triggering change notifications when modifying custom object ivars in core data app
  • Previous by thread: issue porting resource files code from 10.4 to 10.5
  • Next by thread: Re: multiple windows (dialogs) per nib (.xlib) file
  • Index(es):
    • Date
    • Thread