Re: Can an image be "rejected" by CALayer?
Re: Can an image be "rejected" by CALayer?
- Subject: Re: Can an image be "rejected" by CALayer?
- From: Seth Willits <email@hidden>
- Date: Wed, 06 Apr 2011 14:26:09 -0700
On Apr 6, 2011, at 3:44 AM, Gabriel Zachmann wrote:
> I am creating CA layers like so:
>
> CALayer * imgLayer = [CALayer layer];
> imgLayer.contents = (id) image;
> ...
>
> The question now is: can I somehow find out whether or not the image has been ignored by CALayer?
> Can I get any information as to why this might have happened?
I don't know if it can ignore some, but if you set the contents of a layer, make sure you don't accidentally call setNeedsDisplay on it. That'll wipe out the contents you set. That tripped me up a few times.
--
Seth Willits
_______________________________________________
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