Re: Printing many, many pages efficiently
Re: Printing many, many pages efficiently
- Subject: Re: Printing many, many pages efficiently
- From: Jacob Engstrand <email@hidden>
- Date: Tue, 3 Dec 2002 23:49:31 +0100
On tisdag, dec 3, 2002, at 23:23 Europe/Stockholm, Jeff LaMarche wrote:
On Tuesday, December 3, 2002, at 03:36 PM, Jacob Engstrand wrote:
The question:
How can I set up the printing machinery to call my code once for each
page, so that I can build that page just before it is printed, and
then release it, its subviews and its associated data before building
the next page?
I don't think there's a generic answer to this. If your information is
of a set size(e.g. 10 database rows per page) or if the size can be
determined relatively easily, then you could relatively easily code it
to be more efficient. However, if the printed length of each database
row is variable, I'm not sure that there's any easy way to make
printing more efficient.
Hi & thanks.
Well, one can _sort of_ do it in rectForPage:... That's what I'm doing
now. Actually, I manage to do everything I want except removing any
subviews from the "page view". (Why are the subviews needed once they
are already printed?)
Anyhow, rectForPage: clearly isn't meant to be used this way. It would
be really nice to find the "proper" way.
/jak
_______________________________________________
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.