Re: Erasing drawn content
Re: Erasing drawn content
- Subject: Re: Erasing drawn content
- From: Matej Bukovinski <email@hidden>
- Date: Tue, 8 Jun 2010 23:02:10 +0200
Could you perhaps elaborate a bit how you think that a layer backed view could help?
The window overlay sounds like it could work. Hoverer, a NSView overlay would be preferred since I'm inserting the overlay in the WebView's scroll view (and matching the documents view size via bounds change notifications). This works very well when scrolling both the web and overlay view at the same time (and is also efficient).
>
> Of course, silly me. Can something be done with a layer-backed view here, used as some kind of overlay? Alternatively, one could position a borderless window over the WebView and draw your rectangles into that. This window can be made initially transparent by:
> - calling setOpaque: NO on the window
> - having the content view return isOpaque as YES
> - filling the content view with clearColor
>
> Then draw your rectangles in the content view of this window and the NSRectFill trick should work.
>
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