Re: scaleUnitSquareToSize
Re: scaleUnitSquareToSize
- Subject: Re: scaleUnitSquareToSize
- From: John Randolph <email@hidden>
- Date: Fri, 8 Aug 2003 12:03:33 -0700
On Friday, August 8, 2003, at 10:44 AM, Greg Titus wrote:
On Friday, August 8, 2003, at 08:46 AM, Neil Earnshaw wrote:
NSView lets you scaleits unit square using
scaleUnitSquareToSize:(NSSize)size.
Is there anyway to read the current unit square size?
The result of [view convertSize:NSMakeSize(1,1) fromView:nil] will
give you the current scaling for the view...
Woah! Thanks, Greg. I hadn't thought of that. The last time I needed
to do this, I did it the hard way by extracting it from the current
transformation matrix.
There's always something to learn from this list ;-)
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.