• 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: How to clone a CALayer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to clone a CALayer? (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: How to clone a CALayer?
  • Next by Date: Re: NSKeyedArchiver and NSPoints
  • Previous by thread: How to clone a CALayer?
  • Next by thread: Newbie question for Video Streaming
  • Index(es):
    • Date
    • Thread