• 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: Size of Core Animation Layer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Which CA Layer am I dragging over?
      • From: "K. Darcy Otto" <email@hidden>
References: 
 >Size of Core Animation Layer (From: K.Darcy Otto <email@hidden>)

  • Prev by Date: Re: Uncaught exceptions not terminating my app
  • Next by Date: Re: NSString category name collision?
  • Previous by thread: Size of Core Animation Layer
  • Next by thread: Which CA Layer am I dragging over?
  • Index(es):
    • Date
    • Thread