Re: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
Re: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
- Subject: Re: Clipping a CAGradientLayer with a duplicated CAShapeLayer (don't)
- From: David Duncan <email@hidden>
- Date: Thu, 09 Feb 2012 17:11:34 -0800
On Feb 9, 2012, at 2:36 PM, Fritz Anderson wrote:
> On 9 Feb 2012, at 1:09 PM, Fritz Anderson wrote:
>
>> The trick was that -initWithLayer: did not produce a usable mask layer. If I created maskL as a new mask layer ([CAShapeLayer layer]), and initialized it to match shapeL (except for the fill), gradL was drawn as expected.
>
> I assume this is what you just said — or are you getting at a different way to duplicate the layer?
Nope, using +layer or -init and copying appropriate properties is an appropriately acceptable way to duplicate a layer.
--
David Duncan
_______________________________________________
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