Re: Accessing CALayer properties
Re: Accessing CALayer properties
- Subject: Re: Accessing CALayer properties
- From: Jesus De Meyer <email@hidden>
- Date: Sun, 28 Oct 2007 18:19:22 +0100
My guess is that you're not doing an
#import <QuartzCore/QuartzCore.h>
at the top of your file.
Yeah, that was the issue, so stupid of my part. Thanks
Now that I have that out of the way. To draw an image to the layer, do
I just need to create a CGImageRef (either from a CGImageSourceRef)
and then add that image to the layer's contents property?
Because I did that and the image didn't draw.
BTW, I'm drawing to a CustomView and I've set the CA properties in IB
(wantsLayer and stuff)
Regards,
Jesus
__________________
Jesus De Meyer
www.edot-studios.com
jesus.edot-studios.com
"creativity in mind"
_______________________________________________
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