• 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: Re : Total number pages being printed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re : Total number pages being printed


  • Subject: Re: Re : Total number pages being printed
  • From: Glen Simmons <email@hidden>
  • Date: Fri, 20 Apr 2007 15:37:43 -0500


On Apr 20, 2007, at 3:28 PM, Ewan Delanoy wrote:


Hi Glen,

 if what you're printing is an NSView, you should use
the method

 -(BOOL) knowsPageRange: (NSRangePointer) r

To customize headers and footers, override the
methods -(NSAttributedString*) pageHeader
and -(NSAttributedString*) pageFooter.
 See the NSView class reference in the documentation.

Yep, I know about those. I was wanting to let the system handle the pagination and then find out the number of pages needed while the operation commences. For instance, if I only want the footer on the last page, -pageFooter won't do. But I could do it myself in drawRect: if I knew that -currentPage was the last page. Looks like I'll have to do the -knowsPageRange: thing, though.


Thanks,
Glen
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re : Total number pages being printed
      • From: "Ewan Delanoy" <email@hidden>
References: 
 >Re : Total number pages being printed (From: "Ewan Delanoy" <email@hidden>)

  • Prev by Date: Re : Total number pages being printed
  • Next by Date: Re: doubleClick slop?
  • Previous by thread: Re : Total number pages being printed
  • Next by thread: Re : Total number pages being printed
  • Index(es):
    • Date
    • Thread