• 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
Re: Resizing view content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Resizing view content
      • From: John Timmer <email@hidden>
References: 
 >Re: Resizing view content (From: "Alastair J.Houghton" <email@hidden>)

  • Prev by Date: Re: Aqua-style custom views
  • Next by Date: Using const strings
  • Previous by thread: Re: Resizing view content
  • Next by thread: Re: Resizing view content
  • Index(es):
    • Date
    • Thread