Re: printing a table
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.