Re: scaleUnitSquareToSize
Re: scaleUnitSquareToSize
- Subject: Re: scaleUnitSquareToSize
- From: Neil Earnshaw <email@hidden>
- Date: Sat, 9 Aug 2003 11:08:04 +0100
Thanks Greg,
That really useful. I needed that to figure out if there was something
wrong with my setting of the scale factors for the unit square. I'm
getting a problem which I've narrowed down a bit.
I've got a diagram view that has been getting a bit confused when I
zoom in and out. It seems now that it only misbehaves when the scale
factor is greater than 1.0. When I zoom out, using scale factors <
1.0, everything is fine. When I zoom in to scale factors > 1.0 the
first rendering of the view is okay, but subsequent operations on the
diagram cause drawRect: to think that the scaling has changed back to
1.0. My diagram gets clipped.
Is it safe to use scales factors > 1.0?
- Neil
On Friday, August 8, 2003, at 06:44 PM, 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...
Hope this helps,
- Greg
_______________________________________________
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.
_______________________________________________
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.