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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com