How to display two windows in one nib file(not the main nib file)
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