Advice for rotating content in a window so it doesn't get clipped
Advice for rotating content in a window so it doesn't get clipped
- Subject: Advice for rotating content in a window so it doesn't get clipped
- From: Eric Wing <email@hidden>
- Date: Thu, 06 Sep 2012 00:48:02 -0700
I have a bunch of content in a non-square window I want to rotate with
setFrameCenterRotation (using the animator). The content fills the
existing window perfectly (i.e. to the edges), so for it to not be
clipped on the edges of the window when it rotates, I need to increase
the window size temporarily in all 4 directions.
I want the thing I'm rotating to stay centered relative to its
original screen position, so when I resize the window, I need the view
to not shift in absolute terms despite the fact that the window's
origin (lower-left corner) will need to move.
I'm looking for ideas on the best/easiest way of accomplishing this.
Additional details: My window is already transparent/borderless. My
existing content is done programmatically (no nibs).
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