Re: Keeping track of CGAffineTransform's action
Re: Keeping track of CGAffineTransform's action
- Subject: Re: Keeping track of CGAffineTransform's action
- From: Pierre Berloquin <email@hidden>
- Date: Tue, 2 Jun 2009 17:55:49 +0200
You are right on an efficiency point of view, except I also use other Quartz
functions, for special text renderings for example, in view of later 3D
treatments, and it's logically saner to remain in one programming context
rather than shift between CGRect and Affine.Yet Apple's philosophy on the
matter is not very clear, transfering some Quartz functions to NS objects in
3.0 instead of making Quartz unavoidable ...
2009/6/2 David Duncan <email@hidden>
> 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
>
>
--
Blogs : http://bibliobs.nouvelobs.com/blog/jeux-litteraires
http://pierre-berloquin.blogspot.com/
Développement durable des neurones par le jeu de réflexion
www.crealude.net
Sustainable development of neurones through mind games
www.crealude.net/us
Que fait-on pour les mal-codants ?
_______________________________________________
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