• 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
How do I control the print job title?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I control the print job title?


  • Subject: How do I control the print job title?
  • From: Jim Correia <email@hidden>
  • Date: Sat, 8 Oct 2005 21:59:13 -0400

The Tiger release notes say:

    - (NSAttributedString *)pageHeader;
    - (NSAttributedString *)pageFooter;

NSView's implementations of these methods provide a default header that
includes the print job title (which typically is the same as the
document or window title) and the date, and a default footer that
includes the page number and page count. A printable view class can
override one or both of these methods to substitute its own content in
place of these defaults.


Say I am printing a view that is already in a window, and that window's title isn't suitable for the printed object. (For example, the Mail Viewer window in mail whose title isn't the subject of the message being viewed.) How do I control the job title in this situation?

If I create a view specifically for printing, how do I control the job title? Do I have to add the view to a window just to set its job title? Do I have to override pageHeader (and re-implement the work the AppKit has already done for me?)

What is the best way to handle this situation?

Thanks,
Jim


_______________________________________________ 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: How do I control the print job title?
      • From: Aaron Tuller <email@hidden>
  • Prev by Date: Re: Classy NSSplitViews in Cocoa
  • Next by Date: Re: How do I control the print job title?
  • Previous by thread: Re: Apple Interface Copyright
  • Next by thread: Re: How do I control the print job title?
  • Index(es):
    • Date
    • Thread