• 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: Overlay over webView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overlay over webView


  • Subject: Re: Overlay over webView
  • From: glenn andreas <email@hidden>
  • Date: Tue, 14 Aug 2007 08:39:57 -0500


On Aug 14, 2007, at 8:28 AM, I. Savant wrote:

1)Subclass the webView (ick)

Unnecessary and ... possibly 'ouch' (I've not looked at the source, but still ...).

And problematic - since anything the subclass of the webView would draw in drawRect: will end up _underneath_ the content of the page (since the subviews that display the content draw the parent view).



2)Create a transparent window above the webView while the page is
loading

Far better idea.

Spot on.

Is there a way to tie the windows together (similar to a sheet)?

If you want immediate, real-time updates, I'd subclass NSWindow and override -setFrame... methods to taste. When those are called, notify your overlay view and then call super.

Remember you'll need to set your window to use your subclass.

Don't do that - just add the overlay window as a child window of window containing the webview and everything moves in lock sync for free (child windows are how sheets and drawers work)


If you have resizing, just let the window's delegate handle coordinating them (or explicitly set up watching the window resize notification).

Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, mutate, evolve, animate




_______________________________________________

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


  • Follow-Ups:
    • Re: Overlay over webView
      • From: "I. Savant" <email@hidden>
References: 
 >Overlay over webView (From: Jon Hull <email@hidden>)
 >Re: Overlay over webView (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Overlay over webView
  • Next by Date: Fwd: Overlay over webView
  • Previous by thread: Re: Overlay over webView
  • Next by thread: Re: Overlay over webView
  • Index(es):
    • Date
    • Thread