• 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: Kyle Sluder <email@hidden>
  • Date: Tue, 8 Jun 2010 14:10:07 -0700

On Jun 8, 2010, at 2:02 PM, Matej Bukovinski <email@hidden> wrote:

> Could you perhaps elaborate a bit how you think that a layer backed view could help?

Layers are composed into their own backing stores, so you can accumulate data there rather than recalculating it every time you need to repaint.

That said, you would need to use a layer hosting view rather than a layer backed view, which might put you at a disadvantage from where you started.

>
> 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).

I don't believe you're actually allowed to mess with the web view's scroll view hierarchy; the web view comes with a prepackaged scroll view, unlike say NSTextView.

It sounds like the overlay window is the best bet.

--Kyle Sluder
(Sent from WWDC)_______________________________________________

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: Quincey Morris <email@hidden>
    • Re: Erasing drawn content
      • From: "Paul Sanders" <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>)
 >Re: Erasing drawn content (From: "Paul Sanders" <email@hidden>)
 >Re: Erasing drawn content (From: Matej Bukovinski <email@hidden>)

  • Prev by Date: Re: [iPhone] NSManagedObjectContext save doesn't crash but breaks on objc_exception_throw
  • 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