My currently Carbon app can not only print the contents of a document in memory but also one from a disk without loading it. It does this by using PMSessionBeginDocument(), PMSessionBeginPage(), etc... and drawing each line of the document (in my own file format). When printing a file off disk, this method is very efficient since you don't have to wait for the document to finish loading (which can be potentially very large) before printing and it consumes very little memory since it only needs to maintain a buffer of just one line as it creates pages to print.

Cocoa makes printing my document in memory very easy but I can't find equivalent methods that give me the level of control I need for printing a file of indeterminate size without loading it. Is what I'm attempting possible or am I just going to have to load my document before printing it?

PS. [[NSPrintPanel printPanel] runModal] seems to crash and I can't figure out why.

-Chinh Nguyen
 [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to