Re: How to clone a CALayer?
Re: How to clone a CALayer?
- Subject: Re: How to clone a CALayer?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 29 Apr 2010 02:32:05 -0700
On Thu, Apr 29, 2010 at 1:20 AM, Oleg Krupnov <email@hidden> wrote:
> Is there a way to clone a CALayer? I need two copies of the same
> drawing, which takes a long time to calculate and draw, so I'd prefer
> to simply copy the result. A brief look shows that CALayer does not
> support -[NSObject copy].
Render your image once, and assign both layers the same contents in
-display (or -displayLayer:).
--Kyle Sluder
_______________________________________________
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