On Jun 17, 2009, at 7:21 AM, Chunk 1978 wrote:
premiss: a red cube, 50 width x 50 height, located at {0,0}. i want to scale the cute 2 times it's width and height, move it to the center of the screen, and rotate it 90ยบ
In general you will have a better understanding of what is going on in your application if you stick to using transforms to scale & rotate your views, rather than to move your views (i.e. translation). It is fully supported to use translation, and necessary for certain types of animation, but if your goal is to move a view to the center of the screen (for example) then setting the view's center to the center of the screen is a saner approach than using the transform matrix to do it.
-- David Duncan Apple DTS Animation and Printing _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com