What is NSView's anchorPoint/origin/axis for setFrameCenterRotation?
What is NSView's anchorPoint/origin/axis for setFrameCenterRotation?
- Subject: What is NSView's anchorPoint/origin/axis for setFrameCenterRotation?
- From: Eric Wing <email@hidden>
- Date: Thu, 06 Sep 2012 19:04:46 -0700
I want to rotate an NSView around its center. (Example: Imagine me
rotating a magnetic compass around so the North pointer rotates around
to the bottom.
I thought setFrameCenterRotation would do this for me. But when I try
it (10.8), it always rotates about the bottom-left corner, not the
center. I thought this API was supposed to do it around the center and
setFrameRotation did the bottom-left corner. (Both do the bottom-left
for me.)
Am I losing my mind? Can somebody confirm the behavior? I can't tell
by the Apple docs.
Thanks,
Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
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