• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa window initially hidden in IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cocoa window initially hidden in IB?
      • From: "a.d. jensen" <email@hidden>
References: 
 >Cocoa window initially hidden in IB? (From: "a.d. jensen" <email@hidden>)
 >Re: Cocoa window initially hidden in IB? (From: j o a r <email@hidden>)
 >Re: Cocoa window initially hidden in IB? (From: "a.d. jensen" <email@hidden>)
 >Re: Cocoa window initially hidden in IB? (From: j o a r <email@hidden>)
 >Re: Cocoa window initially hidden in IB? (From: "a.d. jensen" <email@hidden>)

  • Prev by Date: CIFilter - can not change value
  • Next by Date: Re: SIGTRAP problem
  • Previous by thread: Re: Cocoa window initially hidden in IB?
  • Next by thread: Re: Cocoa window initially hidden in IB?
  • Index(es):
    • Date
    • Thread