• 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: Core Animation geometry, layer hosting, and resolution independence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Animation geometry, layer hosting, and resolution independence


  • Subject: Re: Core Animation geometry, layer hosting, and resolution independence
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 12 Mar 2008 15:35:35 -0700


On 12 Mar '08, at 2:49 PM, Nathan Vander Wilt wrote:

I don't understand what this "base" coordinate system
is (not the window's, otherwise the conversions would
likely be offset by the view's position therein,
right?). But whatever it is, it seems to be shared by
the CALayer.


The Cocoa Drawing Guide, under "Pixel-Exact Drawing", says:
"These convenience methods make it possible to convert values to and from the base (device) coordinate system. They take into account the current backing store configuration for the view, including whether it is backed by a layer."


In a layer-backed NSView, it seems that the 'device', aka backing store, is the view's CALayer; so these methods will convert to/from the layer's coordinates.

I'll go update GeekGameBoard now...

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Core Animation geometry, layer hosting, and resolution independence
      • From: Nathan Vander Wilt <email@hidden>
References: 
 >Re: Core Animation geometry, layer hosting, and resolution independence (From: Nathan Vander Wilt <email@hidden>)

  • Prev by Date: Re: warning: assignment from distinct Objective-C type
  • Next by Date: Ignore QTMovieView Inputs
  • Previous by thread: Re: Core Animation geometry, layer hosting, and resolution independence
  • Next by thread: Re: Core Animation geometry, layer hosting, and resolution independence
  • Index(es):
    • Date
    • Thread