• 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: Can an image be "rejected" by CALayer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Can an image be "rejected" by CALayer? (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: Best way to find files
  • Next by Date: WebView Crashed
  • Previous by thread: Can an image be "rejected" by CALayer?
  • Next by thread: Re: Can an image be "rejected" by CALayer?
  • Index(es):
    • Date
    • Thread