• 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 second window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: THANK YOU OSX GANG
  • Next by Date: Re: How to display second window?
  • Previous by thread: Re(4): Starting the screensaver from code
  • Next by thread: Re: How to display second window?
  • Index(es):
    • Date
    • Thread