• 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: Printing many, many pages efficiently
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Printing many, many pages efficiently (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: Printing many, many pages efficiently
  • Next by Date: [SOLVED] PackageMaker Help
  • Previous by thread: Re: Printing many, many pages efficiently
  • Next by thread: Re: Printing many, many pages efficiently
  • Index(es):
    • Date
    • Thread