Re: Cocoa window initially hidden in IB?
Re: Cocoa window initially hidden in IB?
- Subject: Re: Cocoa window initially hidden in IB?
- From: Yann Bizeul <email@hidden>
- Date: Thu, 27 Oct 2005 17:16:34 +0200
In IB, you have a checkbox in window's inspector called "Visible at
launch time" :
This will make the window not open when you launch the application.
but I can't figure out for the life of me how to tell IB to not
display the window when it is opened.
Yeah, when you ask AppKit to open a window... it displays it, that
makes sense to me :-)
If you want to make initializations before the window is open (like
loading your web page) do this in :
- (void)awakeFromNib
and then, call :
- (void)makeKeyAndOrderFront:(id)sender
on your window
Yann Bizeul • yann at tynsoe.org
Cocoa Developer
Tynsoe Projects
BuddyPop • GeekTool • SSH Tunnel Manager • ...
http://projects.tynsoe.org/
Le 27 oct. 05 à 02:29, a.d. jensen a écrit :
Probably a simple question that's been answered a million times,
but searching the list archives for "hidden" returns every message :-)
I have a window in a document based application that contains a
webview and I would like it to remain hidden until the page has
loaded. I have the show code in my "didFinishLoadForFrame" method,
but I can't figure out for the life of me how to tell IB to not
display the window when it is opened.
In a Carbon NIB, it's a simple selection of the appropriate check
box, so I presume it's something similar here and I just can't find
it.
Thanks for the help!
dale
--
email@hidden http://adjensen.aatrix.com
Only a fool turns away from an angel,
Vision in white steps through the door,
Holds out her hand, I say 'No I'm not ready'
I open my eyes and let the dream fade away.
-- echolyn, "on any given nite"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden