• 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
printing nsscrollview gets shifted up off edge of page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printing nsscrollview gets shifted up off edge of page


  • Subject: printing nsscrollview gets shifted up off edge of page
  • From: Seth Delackner <email@hidden>
  • Date: Mon, 15 Aug 2005 20:30:26 +0000
  • Mail-followup-to: email@hidden

We have a document-based application where we manage
pagination ourselves with all content in series of subviews
of a single NSView, contained in an NSScrollView, a pretty
standard setup.  Our drawing code is thus essentially nearly
the same for both printing and on screen drawing, with a few
conditionals to hide screen-oriented things like selection
rectangles.

Inside the main document view is, per page, a main body
textView and a header and footer textView.

Strangely, if we make the footer view larger than roughly 1
inch, the entire content of the page is shifted up off the
top edge of the page.  The amount it is shifted is not
clearly related to how large the footer view is, as I
measured and it the ratio of footer height / amount chopped
off the top diminishes as the height increases.

Logging the rect being passed to our document view on
-drawRect, I see that the rect it is being told to draw is
indeed different during printing and on screen drawing, but
a) is that normal, b) why?

Any ideas?  I know this is pretty vague, but it is so odd
I'm not sure what the culprit could be.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • printing gets shifted up off edge of page
      • From: Seth Delackner <email@hidden>
  • Prev by Date: Re: NEWBIE: Connecting up all those Ms, Vs and Cs
  • Next by Date: Problem with NSTreeController bindings.
  • Previous by thread: Re: how can one programmatically check if text fits in cells and text-views?
  • Next by thread: printing gets shifted up off edge of page
  • Index(es):
    • Date
    • Thread