Thanks Graham
It took a bit of trial and error, but scaleUnitSquareToSize seems to
do what I want. I ripped out all the transform code and just wrote a
simple override to setFrame for the page view
- (void) setFrame:(NSRect) inFrame
{
NSSize currentSize = [self
On Thu, May 21, 2009 at 10:52 PM, Ken Tozier wrote:
> Perhaps I'm not understanding how transforms are supposed to work, but from
> my reading of the relevant drawing and transform documentation, I got the
> impression that if a transform was applied to a view, it treated the view
> and all it's s
On 22/05/2009, at 12:52 PM, Ken Tozier wrote:
- (void) drawRect:(NSRect) inRect
{
NSAffineTransform *transform = [self transform];
[transform concat];
[[NSColor whiteColor] set];
NSRectFillUsingOperation([self frame], NSCompos
Hi
I wrote a custom view that contains several other views and am having
problems when applying an affine transform to the main view. The main
view is a page and the two subviews are a crop view that displays page
margins and a column view that displays the page columns. I've checked
to m