On Jun 17, 2009, at 10:50 PM, David Duncan wrote:

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.

Hi David,

my understanding was that the OP wanted to do all three operations concurrently. Of course, if he wants simply to move, then scale, and then rotate, there are easier ways to accomplish that than to use transforms.

Wagner_______________________________________________

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

Reply via email to