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

Printing many, many pages efficiently


  • Subject: Printing many, many pages efficiently
  • From: Jacob Engstrand <email@hidden>
  • Date: Tue, 3 Dec 2002 21:36:11 +0100

Hi all,

I want to print many, many records from a database. And I do! Printing goes well. All is fine.


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?


From what I understand, it seems you have to provide the entire NSView to be printed, and feed that into printOperationWithView: before the actual printing even starts. I would really like to avoid this, as it consumes a lot of memory. Also it is rather wasteful to have to build a view spanning over, say, 100 pages (loading maybe 1000 records from my database), if the user only wants to print a small range of pages.


Very grateful for any input!

thanks
/jacob
_______________________________________________
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.

  • Follow-Ups:
    • Re: Printing many, many pages efficiently
      • From: Paul Collins <email@hidden>
    • Re: Printing many, many pages efficiently
      • From: Jeff LaMarche <email@hidden>
  • Prev by Date: Re: Basic FTP and .Mac support for a Cocoa app
  • Next by Date: [OT] PackageMaker Help
  • Previous by thread: Re: replacing self in initWithCoder method?
  • Next by thread: Re: Printing many, many pages efficiently
  • Index(es):
    • Date
    • Thread