• 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
Re: Control Over IB 'Visible At Launch Time' Flag
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Control Over IB 'Visible At Launch Time' Flag


  • Subject: Re: Control Over IB 'Visible At Launch Time' Flag
  • From: Greg Titus <email@hidden>
  • Date: Thu, 14 Aug 2003 09:02:05 -0700

On Thursday, August 14, 2003, at 08:40 AM, Lance Drake wrote:

My AwakeFromNib call does not seem to present me with the opportunity to act one way or the other on the issue of letting the window be drawn or not.

The flag set in Interface Builder 'Visible At Launch Time' does exactly what it says - but now I've decided this is not a static situation and would like to know how to cause my nib-based window to observe/not-observe that flag when my AwakeFromNib is executed.

-awakeFromNib is too late for changing this flag, since the window is either visible or not by the time it gets called.

Instead of messing with the flag, turn 'visible at launch time' off and leave it off, then in your -awakeFromNib method, if you decide you want to display the window, call -makeKeyAndOrderFront: on it, and if you decide you don't want to display the window, just do nothing.

Hope this helps,
- Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re[2]: Control Over IB 'Visible At Launch Time' Flag
      • From: Lance Drake <email@hidden>
References: 
 >Control Over IB 'Visible At Launch Time' Flag (From: Lance Drake <email@hidden>)

  • Prev by Date: Control Over IB 'Visible At Launch Time' Flag
  • Next by Date: Coding question
  • Previous by thread: Control Over IB 'Visible At Launch Time' Flag
  • Next by thread: Re[2]: Control Over IB 'Visible At Launch Time' Flag
  • Index(es):
    • Date
    • Thread