Re: Cocoa window initially hidden in IB?
Re: Cocoa window initially hidden in IB?
- Subject: Re: Cocoa window initially hidden in IB?
- From: "a.d. jensen" <email@hidden>
- Date: Fri, 28 Oct 2005 10:07:16 -0500
On Oct 27, 2005, at 3:41 PM, j o a r wrote:
On 27 okt 2005, at 21.52, a.d. jensen wrote:
Have you tried passing NO for the display parameter?
No, for some reason, I didn't notice that parameter :-)
However, passing NO there results in the window being (apparently)
permanently invisible. I tried putting makeKeyAndOrderFront: in a
number of places that get called once the window is created (like
webViewShow: and didFinishLoadForFrame:) and the window never
appears.
I don't believe that to be true. Continue to troubleshoot why you
can't get the window on screen - you must be doing something wrong.
All right, I'm about ready to throw this computer in the bin :-) The
only thing saving it is that I'm pretty sure that I just don't "get"
this stuff.
I put a breakpoint in my webViewShow function, so that I can tell
when it is being called.
In my createWebViewWithRequest function, if I use display:NO and, in
the same method, call [myDocument showWindows], "webViewShow" gets
called. If I comment out [myDocument showWindows], it never gets
called, and neither does didFinishLoadForFrame. As noted above, it
appears that the window is permanently invisible, since I can't find
any subsequent method that gets called and I can stick the
showWindows method into.
I thought about manually resizing the window in the
createWebViewWithRequest code before I call showWindows, but it
doesn't appear that the window exists at that point (or at least I
can't see how to access it.)
Any further thoughts? Thanks!
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