Re: Size of Core Animation Layer
Re: Size of Core Animation Layer
- Subject: Re: Size of Core Animation Layer
- From: vincent habchi <email@hidden>
- Date: Thu, 28 Jan 2010 11:47:38 +0100
Le 28 janv. 2010 à 08:43, K.Darcy Otto a écrit :
> NSRect rect = NSRectFromCGRect([hitLayer frame]);
> float width = rect.size.width;
>
> That is, it returns a width, but not the width in the current window coordinates. Any ideas? Thanks.
What do you mean by "not the width in the current window coordinates"? By definition, a width is coordinate independent, as long as your underlying metric space remains the same (thanks to Einstein).
Vincent
_______________________________________________
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