• 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: pageHeader and pageFooter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: pageHeader and pageFooter
      • From: Troy Stephens <email@hidden>
References: 
 >pageHeader and pageFooter (From: James Spencer <email@hidden>)
 >Re: pageHeader and pageFooter (From: Troy Stephens <email@hidden>)

  • Prev by Date: Getting bitmap data out of an CIImageRep
  • Next by Date: Re: pageHeader and pageFooter
  • Previous by thread: Re: pageHeader and pageFooter
  • Next by thread: Re: pageHeader and pageFooter
  • Index(es):
    • Date
    • Thread