Re: Re : Total number pages being printed
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