• 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: Sit on it and rotate ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sit on it and rotate ??


  • Subject: Re: Sit on it and rotate ??
  • From: Kyle Mandli <email@hidden>
  • Date: Thu, 28 Jun 2001 10:13:03 -0500

On Thursday, June 28, 2001, at 09:07 AM, Robert Miller wrote:
>
> Can someone tell me what the trick is to rotating an image in Cocoa.

I have been using the NSAffineTransform to create transformations of the
coordinate system. You can then send a

- (void)rotateByDegrees:(float)angle
- (void)rotateByRadians:(float)angle

then either apply it to the current NSView or go into core graphics and
set it as the current coordinate system. There is a good example on how
to do this in "Learning Cocoa" in one of the appendices.

Good Luck.

Kyle


  • Follow-Ups:
    • Re: Sit on it and rotate ??
      • From: Robert Miller <email@hidden>
References: 
 >Sit on it and rotate ?? (From: Robert Miller <email@hidden>)

  • Prev by Date: Is it possible to do this within an IBPalette ?
  • Next by Date: Re: NSBeginAlertSheet question
  • Previous by thread: Sit on it and rotate ??
  • Next by thread: Re: Sit on it and rotate ??
  • Index(es):
    • Date
    • Thread