• 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: Erasing drawn content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Erasing drawn content


  • Subject: Re: Erasing drawn content
  • From: "Paul Sanders" <email@hidden>
  • Date: Tue, 8 Jun 2010 19:00:04 +0100

On Jun 8, 2010, at 10:03 AM, Kyle Sluder <email@hidden> wrote:

> You can't do this. All your views are composited back-to-front into
> the window's backing store, so filling with anything will obliterate
> your web view's drawing.

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.

Regards,

Paul Sanders.
_______________________________________________

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: Erasing drawn content
      • From: Matej Bukovinski <email@hidden>
References: 
 >Erasing drawn content (From: Matej Bukovinski <email@hidden>)
 >Re: Erasing drawn content (From: Steve Christensen <email@hidden>)
 >Re: Erasing drawn content (From: Matej Bukovinski <email@hidden>)
 >Re: Erasing drawn content (From: Kyle Sluder <email@hidden>)
 >Re: Erasing drawn content (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: BOOL returned via -performSelctor: not BOOL on 64-bit system
  • Next by Date: Re: BOOL returned via -performSelctor: not BOOL on 64-bit system
  • Previous by thread: Re: Erasing drawn content
  • Next by thread: Re: Erasing drawn content
  • Index(es):
    • Date
    • Thread