• 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
How to display two windows in one nib file(not the main nib file)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to display two windows in one nib file(not the main nib file)


  • Subject: How to display two windows in one nib file(not the main nib file)
  • From: "Fei Li" <email@hidden>
  • Date: Fri, 18 Feb 2005 11:53:30 -0700
  • Thread-topic: How to display two windows in one nib file(not the main nib file)

Hello all,
I'd like user to click a button then two windows will be shown. I put these two windows in a separate nib file whose owner is a subclass of NSWindowController. After user close these two windows and click the button again I want show the two windows again. But my application only show the the window controller's window at that time. Even I use [secondWindow orderFront:self] when the first window showed, it will not be shown again. This window do show at first time when user click on the button and I use [[windowcontroller sharedWindowController] showWindow:self].
 
The way I can think of  is put another window controller in the same nib file to show it. But as document said a nib file with the owner of NSWindowController can have more than one window to be top objects. If there's any other better way to do that, or I missed something?
 
Thanks for any information!
Fei
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Creating NSViews with code.
  • Next by Date: Re: Listening to bindings
  • Previous by thread: Re: Window Movement Animations ???
  • Next by thread: Getting the pixels from an NSImage
  • Index(es):
    • Date
    • Thread