Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Documentation for Printer Drivers



I have the "Extending Printing Dialogs" PDF which describes pretty well
what to do for PDEs, but don't know of any documentation for PMs. For
example, when I delete a job printing in the print queue, I see CancelJob
is called while PrintPage is executing (while testing using OS X 10.1.5).
CancelJob sets an abort flag which PrintPage uses to stop getting bands
of image data. But I never see the 'printf' I placed at the end of
PrintPage,
nor do I see EndJob ever called. (Is this normal?)

As another example, when I use the readProc passed in to get status
from my printer, I set the readSize variable whose address is passed
to readProc. Is this necessary? Does the readProc read this variable and
return only that many bytes (kind of like FSRead) or does it just read
whatever is available and return that many bytes? (This is contrived, but
examples closer to read life are: (1) can I do two reads, each returning a
part
of the expected stream from the printer and (2) what happends if I try to
read
0 bytes?

There must be documentation on this kind of stuff, but I can't seem to find
it.
Where is it? (Thanks.)
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.