• 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: printing a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printing a table


  • Subject: Re: printing a table
  • From: Frank Midgley <email@hidden>
  • Date: Tue, 27 Jul 2004 18:38:05 -0500

On Jul 20, 2004, at 8:56AM, John Spicer wrote:

I notice that when I print a table (with it hooked up to either first responder OR the table directly, it's printing without the column headers.

The header cells of a table are actually drawn in a separate view from the table itself. NSScrollView queries its document view for -headerView and -cornerView. If they come back non-nil then the scroll view draws them above the scrolling document area and keeps the headerView scrolled in sync with the document. So any view can have a header and/or corner when inside a scroll view.

So you don't get this for free when printing unless you print the scroll view. But then the scroll view will print at its on screen size which means that any cells not showing on screen won't be printed. You might be able to temporarily expand the scroll view large enough to reveal its entire document to avoid this. And then you'll find that cells get split across page boundaries.

I'm discovering that printing is never truly free...

-Frank

------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/
_______________________________________________
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.


References: 
 >printing a table (From: John Spicer <email@hidden>)

  • Prev by Date: Re: Where is NSList?
  • Next by Date: Re: Default button surrounded by black square for Panther, not Jaguar
  • Previous by thread: printing a table
  • Next by thread: Why is [[NSDocumentController sharedDocumentController] currentDocument] returning null?
  • Index(es):
    • Date
    • Thread