Re: Resizing view content
Re: Resizing view content
- Subject: Re: Resizing view content
- From: John Timmer <email@hidden>
- Date: Wed, 22 Oct 2003 16:13:05 -0400
>
OK. If you read the documentation for -scaleUnitSquareToSize:, you
>
will see that it affects "the receiver's co-ordinate system" (i.e. the
>
receiving view's bounds), and will indeed leave the frame the same as
>
it was before (probably too wide as well as too tall, so you'll get
>
quite a few blank pages).
>
>
Have you tried resizing the view's frame to match the scaling you
>
applied to the internal co-ordinate system? Something like this, for
>
example:
Well, I tried:
[thePrintView scaleUnitSquareToSize: NSMakeSize( 0.63, 0.63)];
[thePrintView setFrame: [thePrintView bounds]];
Which should accomplish more or less the same thing as your suggestion. The
results were identical whether the first or second line was present or not,
which is why I think the bounds aren't changing, but rather that their
contents are.
Your suggestion to log is a good one though - I'll either log or debug and
check both frame and bounds before and after scaling and see what's to be
seen there, and hopefully get some ideas.
Cheers,
John
_______________________________________________
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.