Re[2]: Control Over IB 'Visible At Launch Time' Flag
Re[2]: Control Over IB 'Visible At Launch Time' Flag
- Subject: Re[2]: Control Over IB 'Visible At Launch Time' Flag
- From: Lance Drake <email@hidden>
- Date: Thu, 14 Aug 2003 10:16:27 -0600
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
Hi Greg,
Good golly that really DOES help. I have several Cocoa books here
and some of them don't even have the WORD 'nib' in the index - none of
them mention this flag, it's true influence, scope or access to it's
state. It's really amazing how difficult it is sometimes to put
together a scenario for how it is one is supposed to do what you would
wish.
For instance, 'setTitle' worked fine on the NSWindow pointer I was able
to derive - so I knew I was looking at the correct NSWindow object.
But calls like 'display', 'close' and other supposedly reasonable
commands did not seem to have any effect.
Thanks SO much for your excellent and timely advice.
Lance Drake
_______________________________________________
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.