• 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
Crying Over CoreAnimation Center Rotation Math
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crying Over CoreAnimation Center Rotation Math


  • Subject: Crying Over CoreAnimation Center Rotation Math
  • From: Chilton Webb <email@hidden>
  • Date: Wed, 09 Jul 2008 20:04:41 -0700

Hi,

I have an NSView subclass. I rotated it with -setFrameCenterRotation, and that works just fine.

But now I want to scale it down 50%. If I use NSInsetRect() to shrink it, it flies off in a random direction.

Worse, if I set another view to that view, or use the frame of the rotated view for checking intersection with another rectangle, it's always somewhere weird.

I get it though, I realize that this is the same as rotating off the 0,0 corner. So how do I correctly establish the boundaries of the rotated object?


Thank you,
-Chilton Webb



_______________________________________________

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

  • Prev by Date: Re: Attributed menu titles
  • Next by Date: NSTableView prematurely posts selection changed notification
  • Previous by thread: Re: Attributed menu titles
  • Next by thread: NSTableView prematurely posts selection changed notification
  • Index(es):
    • Date
    • Thread