Bound resizing Problem
Bound resizing Problem
- Subject: Bound resizing Problem
- From: "Dan Rodricks" <email@hidden>
- Date: Tue, 23 May 2006 20:17:25 +0530
Hai All,
I have a selcted array og graphics. to rotate tha selected
graphics(graphic) bound i gave these codes but didn't work i guess i am
missing some thing here with my code can any one help me.
NSRect bounds=[self bounds];
NSArray *selection = [self selectedGraphics];
NSAffineTransform* xform = [NSAffineTransform transform];
// Add the transformations
//[xform [[graphic objectAtIndex:0] translateXBy:50.0 yBy:20.0] ];
[xform rotateByDegrees:45.0]; // counterclockwise rotation
[xform scaleXBy:1.0 yBy:2.0];
// Apply the changes
[xform concat] ;
[self setNeedsDisplay:YES];
Thanks in Advance.
Rodricks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden