Re: Can an image be "rejected" by CALayer?

2011-04-12 Thread Gabriel Zachmann
> Assuming this is the entirety of the code, then as mentioned previously you > never set the bounds or frame of your layer. Well, I don't know what to say ... I've just rediscovered that I actually do set the bounds: if ( orientation >= 5 ) // swap width & height

Re: Can an image be "rejected" by CALayer?

2011-04-11 Thread David Duncan
On Apr 11, 2011, at 12:40 PM, Gabriel Zachmann wrote: > As I said, some images just won't get displayed under 10.5, but the same > images work fine under 10.6. Assuming this is the entirety of the code, then as mentioned previously you never set the bounds or frame of your layer. Try setting t

Re: Can an image be "rejected" by CALayer?

2011-04-11 Thread Gabriel Zachmann
> > > Show all the code by which the layer is configured and put into the interface > if you want a more educated response. m. > I'll try, it's a bit scattered throughout my program. (I was a bit hesitant to flood my original post with potentially unwanted code ...) Here goes: CGIma

Re: Can an image be "rejected" by CALayer?

2011-04-10 Thread Matt Neuburg
On Sun, 10 Apr 2011 22:29:55 +0200, Gabriel Zachmann said: >>> I am creating CA layers like so: >>> >>> CALayer * imgLayer= [CALayer layer]; >>> imgLayer.contents = (id) image; >>> imgLayer.contentsGravity = kCAGravityResizeAspect; >>> imgLayer.delegate

Re: Can an image be "rejected" by CALayer?

2011-04-10 Thread Gabriel Zachmann
>> I am creating CA layers like so: >> >> CALayer * imgLayer = [CALayer layer]; >> imgLayer.contents = (id) image; >> imgLayer.contentsGravity = kCAGravityResizeAspect; >> imgLayer.delegate = nil; >> imgLayer.opacity = 1.0; >> imgLayer.positio

Re: Can an image be "rejected" by CALayer?

2011-04-08 Thread Matt Neuburg
On Wed, 06 Apr 2011 18:44:04 +0800, Gabriel Zachmann said: >I am creating CA layers like so: > >CALayer * imgLayer = [CALayer layer]; >imgLayer.contents = (id) image; >imgLayer.contentsGravity = kCAGravityResizeAspect; >imgLayer.delegate = nil; >

Re: Can an image be "rejected" by CALayer?

2011-04-06 Thread Seth Willits
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 CA