• 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: Keeping track of CGAffineTransform's action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping track of CGAffineTransform's action


  • Subject: Re: Keeping track of CGAffineTransform's action
  • From: David Duncan <email@hidden>
  • Date: Tue, 2 Jun 2009 08:44:01 -0700

On Jun 2, 2009, at 8:39 AM, Pierre Berloquin wrote:

Possible indeed but Quartz programming is seamless and less cumbersome.
I always tend to favor one-liners over many-liners.

I suppose what I'm trying to imply is that if you want to move a view, then move it instead of transforming it. Your not saving yourself anything in this case, but your imposing on the graphics system to do a matrix multiply when it may otherwise just use the geometry directly.


Either way, your going to have to keep track of how far you've moved the view. In your case it is by updating the tx & ty values in your transform matrix. If you move the view's center, then you are updating the view's center property. Either way its the same amount of work on yoru part.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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: Keeping track of CGAffineTransform's action
      • From: Pierre Berloquin <email@hidden>
References: 
 >Keeping track of CGAffineTransform's action (From: Pierre Berloquin <email@hidden>)
 >Re: Keeping track of CGAffineTransform's action (From: David Duncan <email@hidden>)
 >Re: Keeping track of CGAffineTransform's action (From: Pierre Berloquin <email@hidden>)

  • Prev by Date: Re: Keeping track of CGAffineTransform's action
  • Next by Date: Re: Keeping track of CGAffineTransform's action
  • Previous by thread: Re: Keeping track of CGAffineTransform's action
  • Next by thread: Re: Keeping track of CGAffineTransform's action
  • Index(es):
    • Date
    • Thread