• 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
Webkit / Cocoa window flashing again...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Webkit / Cocoa window flashing again...


  • Subject: Webkit / Cocoa window flashing again...
  • From: Dale Jensen <email@hidden>
  • Date: Sat, 17 Nov 2007 23:27:14 -0600

I'm really getting tired of this problem, and for a while it was fixed, but seems to have broken again recently.

I have a document based Cocoa application that holds a WebView. The position and size of the window, initially, is a fixed size. This works fine -- the application starts, opens a window, loads a URL, etc.

However, when another window is opened, in response to a javaScript "window.open" call, this is the behaviour:

1) The new window opens on the screen, in the full size
2) The window is moved and resized to the correct dimensions
3) The WebView updates

This looks terrible, because there's a very evident "flashing" that happens.

If I step into the code with the debugger, there is nothing on screen until I make this call:

  [myFrame loadRequest:[NSURLRequest requestWithURL:fileURL]];

Immediately after that line, when I switch to the paused application, I see a full size empty window on the screen. The resize and reposition happens in system code, not accessible. When I had this problem in the past, it didn't appear on this call, so this seems to be something new with 10.5.x

What I want to happen is pretty simple:

1) At an early point in the load process, I want to put in something that says "Never, under any circumstances, show this window until I specifically call makeKeyAndOrderFront or do something else manually to show the window"
2) After the WebView has loaded, then, and only then, do I want the window to appear.


Note that this has nothing to do with the "Visible at Launch" flag in IB.

Ideas or suggestions greatly appreciated!


dale

--
a.d. jensen -- email@hidden   http://homepage.mac.com/adjensen/

musical blog:                                   dining blog:
   http://kandsmil.blogspot.com       http://gcdining.blogspot.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: invalid formatter values
  • Next by Date: NSView clickable area
  • Previous by thread: Re: Detecting new line character(s) in text file?
  • Next by thread: Re: Webkit / Cocoa window flashing again...
  • Index(es):
    • Date
    • Thread