Re: pageHeader and pageFooter
Re: pageHeader and pageFooter
- Subject: Re: pageHeader and pageFooter
- From: Kelvin Delbarre <email@hidden>
- Date: Mon, 27 Jun 2005 14:04:03 -0400
On Jun 27, 2005, at 12:35 PM, Troy Stephens wrote:
On Jun 27, 2005, at 5:47 AM, James Spencer wrote:
I have a silly little bug that appears to be in Cocoa but is so
absurd that I just want to see if what I'm seeing is right. I'm
using 10.4's new facility for page headers and footers but they
seem to be backwards. That is, the footer is appearing at the top
of the page while the header is at the bottom.
What kind of view are you attempting to print? Is it perhaps a non-
flipped view (-isFlipped returns NO)?
You -should- be getting the same result as in TextEdit printouts
with the "Number pages when printing" preference turned out: The
default page header contains the title (top left) and date (top
right), while the default footer contains the page number and count
(bottom right).
There is a bug in the computation of the print date, but you can
work around it if needed by substituting your own -pageHeader.
Also, header and footer placement are wrong if the output is scaled.
To see what I mean, print something from TextEdit with scale set to
50% in Page Setup and "Number pages when printing" enabled.
I suppose it's a matter of interpretation whether scaling to 50%
should print a reduced page image in one corner of the physical page
(similar to what n-up printing would do), or scale the content to 50%
but lay it out to fill the physical page. Some apps behave one way,
some the other. But printing scaled content in one corner of the
page and header/footer in a different corner? Oops.
This is the same behavior I described in rdar://4139440
(drawPageBorderWithSize: and NSPrintScalingFactor breakage in Tiger).
_______________________________________________
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