Re: Control Over IB 'Visible At Launch Time' Flag
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.