• 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: Sage advice (NSView vs. CALayer)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sage advice (NSView vs. CALayer)


  • Subject: Re: Sage advice (NSView vs. CALayer)
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 28 Oct 2008 22:46:00 -0400


On 28-Oct-08, at 10:05 PM, Alex Kac wrote:

That's a great one. So in a way if I'm creating a user inter-actable view, I could do my drawing in the layer, but handle all my user interaction in the view. Does that sounds about right? Again I haven't gotten that deep yet, but am working on a few things that I will be...

Not necessarily.

If you can't get the performance or features you need from views alone (drawing caching or certainly types of animations) use Layer-backed views
If you can't accomplish what you need with layer-backed views, consider using layers
if you're using layers, you'll always have to do the event handling in the view that hosts the root layer.


Basically, start at the view level, and then determine if you can't do what you want there, then did deeper


_______________________________________________

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


References: 
 >Sage advice (From: DKJ <email@hidden>)
 >Re: Sage advice (From: Alex Kac <email@hidden>)
 >Re: Sage advice (NSView vs. CALayer) (From: John Pannell <email@hidden>)
 >Re: Sage advice (NSView vs. CALayer) (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: Sage advice
  • Next by Date: Re: Open Window from Input Manager
  • Previous by thread: Re: Sage advice (NSView vs. CALayer)
  • Next by thread: Re: Sage advice
  • Index(es):
    • Date
    • Thread