Re: drawPageBorderWithSize question
Re: drawPageBorderWithSize question
- Subject: Re: drawPageBorderWithSize question
- From: matt neuburg <email@hidden>
- Date: Sun, 24 Nov 2002 08:58:34 -0800
On 11/24/02 at roughly 7:34 AM, thus spake matt neuburg <email@hidden>:
>
I can thus get drawPageBorderWithSize to work perfectly
>
every time, provided I'm willing to print an extra blank
>
page sometimes. But that's sort of ugly. I could work
>
around the bug completely if I could find a way, in these
>
circumstances, to suppress the unwanted extra blank page.
And that's exactly what I've done. As explained in my previous note, I make the NSView too long if the material to be printed is shorter than the paperSize; this causes drawPageBorderWithSize to print correctly every time. I then, just in that one case where the material to be printed is shorter than the paperSize, take over page-rect calculation using knowsPageRange: and rectForPage:, causing there to be only one page.
The bug is thus completely worked around, at least for what I'm printing; drawPageBorderWithSize works fine. However, there's still a bug in it, as explained in my previous note, and Apple should fix it. m.
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.