• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Advice for rotating content in a window so it doesn't get clipped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Advice for rotating content in a window so it doesn't get clipped
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Sandboxing redux
  • Next by Date: autosavesInPlace and sandbox
  • Previous by thread: Re: NSData DataWithContentsOfURL within a protocol handler
  • Next by thread: Re: Advice for rotating content in a window so it doesn't get clipped
  • Index(es):
    • Date
    • Thread