• 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
Re: Rotate NSString... I give up :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotate NSString... I give up :(


  • Subject: Re: Rotate NSString... I give up :(
  • From: Graham Cox <email@hidden>
  • Date: Thu, 7 Aug 2008 09:16:04 +1000

Bear in mind you are moving the co-ordinate system to the object, not the object around the co-ordinate system...

I find it useful to "read" NSAffineTransform operations in reverse order. The operations you list in the code are applied to the object in the opposite order.


cheers, Graham


On 6 Aug 2008, at 6:46 pm, Vitaly Ovchinnikov wrote:

Will test this too, but I don't think it will work.
In my case I moved rectangle from it's real position to zero, then
rotate around zero and then moved back.
In your case I will move it far from zero and then rotate...
But I will give it a try.

On Wed, Aug 6, 2008 at 11:20 AM, Jean-Daniel Dupas
<email@hidden> wrote:
Shouldn't be this instead (check the translations' signs) ?

[tr translateXBy:dx yBy:dy]; // center or rect will be the center of
rotation
[tr rotateByDegrees:90]; // rotate it
[tr translateXBy:-dx yBy:-dy]; // move it back


_______________________________________________

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


References: 
 >Rotate NSString... I give up :( (From: "Vitaly Ovchinnikov" <email@hidden>)
 >Re: Rotate NSString... I give up :( (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Rotate NSString... I give up :( (From: "Vitaly Ovchinnikov" <email@hidden>)

  • Prev by Date: Re: Dumb Q
  • Next by Date: Re: Rotate NSString... I give up :( [SOLVED]
  • Previous by thread: Re: Rotate NSString... I give up :(
  • Next by thread: autorelease CGImageRef?
  • Index(es):
    • Date
    • Thread