How to display second window?
How to display second window?
- Subject: How to display second window?
- From: Fei Li <email@hidden>
- Date: Wed, 19 Dec 2001 09:54:14 -0700
Hello all,
I need to display window1 in my application and after user click a button on
window1, it will bring up window2 and kill itself. Window2 is a subclass of
NSWindow. I create both windows in IB in the same nib file, and set
window1's attribute "visible at launch time" as Yes, window2's as No. But
when I use [window2 display] I have an error: window2 does not respond to
display method.
So, my problem is:
1.How to display a window with attribute "visible at launch time" is No in
IB?
2.If I can have a window with IB but create it programmatically(or when I
need it)?
These seems to be easy questions but really give me a headache. Thanks
anybody help me out!
Fei