Re: Sage advice (NSView vs. CALayer)
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