Re: Cocoa window initially hidden in IB?
Re: Cocoa window initially hidden in IB?
- Subject: Re: Cocoa window initially hidden in IB?
- From: j o a r <email@hidden>
- Date: Thu, 27 Oct 2005 20:21:33 +0200
On 27 okt 2005, at 19.23, a.d. jensen wrote:
The visual resizing is what I need to avoid, simplest way seeming
to be not showing the window until it has loaded (and been resized.)
I assume that you open the new window something like this (It's from
the WebKit ObjC Multiple Windows guide)?
=============================================================
- (WebView *)webView:(WebView *)sender createWebViewWithRequest:
(NSURLRequest *)request
{
id myDocument = [[NSDocumentController sharedDocumentController]
openUntitledDocumentOfType:@"DocumentType" display:YES];
[[[myDocument webView] mainFrame] loadRequest:request];
return [myDocument webView];
}
=============================================================
Have you tried passing NO for the display parameter? If that doesn't
work, I would suggest creating a new WebView for the request and
waiting for it to load, and only at that point, creating a window for
the view.
Or, you might be able to control all of this simply by overriding the
"webViewShow:" delegate method?
I'm no WebKit programmer, but there seems to be a multitude of ways
to go about tackling this problem.
Best of luck,
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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