On 9 Feb 2012, at 4:30 PM, David Duncan wrote:
> Perhaps, but I believe that our point is that -initWithLayer: is not a method
> to use to duplicate a layer, its a method to create a shadow layer (which is
> something strictly for Core Animation's usage). If you duplicated a layer (by
> calling -init and setting all the appropriate properties) then there is no
> reason why it shouldn't work.
Absolutely.
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?
— F
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]