• 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
rotating an object around the center of a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rotating an object around the center of a view


  • Subject: rotating an object around the center of a view
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 4 Mar 2007 05:07:21 -0500

Hi

I'm writing a clock class and am having some trouble getting the hands to rotate around the center of the view using an NSAffineTransform. As it stands now, it's rotating the hands around the lower left corner of the view. Is there any way to set the draw origin of the view to the center without moving the view itself?

Alternately, is there a way to define a transform so that it rotates from a specified point rather than the lower left corner?

Thanks

Ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: rotating an object around the center of a view
      • From: "Philip Q" <email@hidden>
    • Re: rotating an object around the center of a view
      • From: Keith Duncan <email@hidden>
    • Re: rotating an object around the center of a view
      • From: Wain <email@hidden>
  • Prev by Date: Re: Notifications
  • Next by Date: Re: Subclass of NSMutableDictionary hanging
  • Previous by thread: NSUserDefaults dictionary raises exception instead of returning nil
  • Next by thread: Re: rotating an object around the center of a view
  • Index(es):
    • Date
    • Thread