Re: Accessing CALayer properties
Re: Accessing CALayer properties
- Subject: Re: Accessing CALayer properties
- From: Tim Kolar <email@hidden>
- Date: Sun, 28 Oct 2007 10:02:35 -0700
My guess is that you're not doing an
#import <QuartzCore/QuartzCore.h>
at the top of your file.
Also, you can access and set all of the properties using the standard
Cocoa access functions. I.E.
CGPoint pt = [layer position];
... does the same thing as
CGPoint pt = layer.position;
Regards,
-Tim
On Oct 28, 2007, at 7:53 AM, Jesus De Meyer wrote:
Hi,
I'm testing the new CoreAnimation framework but I can't access or
even set the properties of the CALayer object.
The code I'm using is this:
CGPoint pt = layer.position;
Instead of this working, I get the following error: request for
member 'position' in something not a structure or union.
Do I need to tell Xcode that I'm using Objective C 2.0 or something?
PS: the project I'm doing started as a screensaver, but then I added
an Application target and added the nib and main.m file. Not sure if
that could cause this problem.
Thanks in advance,
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
_______________________________________________
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