• 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: Accessing CALayer properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Accessing CALayer properties
      • From: Jesus De Meyer <email@hidden>
References: 
 >Accessing CALayer properties (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: Accessing CALayer properties
  • Next by Date: Re: Best Way to Rotate
  • Previous by thread: Re: Accessing CALayer properties
  • Next by thread: Re: Accessing CALayer properties
  • Index(es):
    • Date
    • Thread