Re: Rotating NSViews
Re: Rotating NSViews
- Subject: Re: Rotating NSViews
- From: "John C. Randolph" <email@hidden>
- Date: Sat, 17 Sep 2005 08:27:32 -0700
On Sep 17, 2005, at 8:17 AM, Michael Becker wrote:
Hi,
simple question: How can I rotate an NSView's frame around its
center? -setFrameRotation: rotates around the origin, and -
translateOriginToPoint: only affects the bounds rectangle
The easiest way is to just move the origin to the center of the
frame, and then rotate it.
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden