Re: Sit on it and rotate ??
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