• 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
Bound resizing Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Bug in PDFKit's PDFDocument attributes?!
  • Next by Date: Re: Bug in PDFKit's PDFDocument attributes?!
  • Previous by thread: how do i force NSArrayController to sort?
  • Next by thread: Re: NSTableView Cocoa Bindings: Handling enter/return on non-editable list
  • Index(es):
    • Date
    • Thread