Cocoa & Printing
Cocoa & Printing
- Subject: Cocoa & Printing
- From: Dietmar Planitzer <email@hidden>
- Date: Thu, 28 Mar 2002 18:28:12 +0100
Hi,
I'm currently doing research regarding printing in Cocoa for a project. So
far what I have found out about the state of printing in Cocoa isn't really
encouraging.
I would highly appreciate it if someone could either conform or deny one of
the following findings as I would like to file a bunch of bugs with Apple:
1) +[NSPrinter printerNames] always returns an empty array, even if there is
a printer physically connected to the machine and configured as the default
printer (beside a bunch of 'dummy' PostScript printers).
2) +[NSPrinter printerTypes] always returns an array with exactly one entry:
"Xrn4525p" (According to the corresponding PPD file its a Xerox DocPrint -
though I never added such a printer to this machine).
3) +[NSPrintInfo defaultPrinter] always returns nil.
4) -[NSPrintInfo printer] always returns nil, no matter if you print to a
real printer or to a file.
5) There is no officially sanctioned way to find out the document format of
a print operation. The only thing I've found out so far is that an
NSPrintInfo key NSPrintFormat exists for prints which go to a file. The same
key does not exist if you print to a real printer.
6) There is no way to find out about things like the printer min/max/default
resolution, user chosen print quality, color mode or paper type.
7) Apparently the PostScript (DSC) related NSView methods have been removed.
This however would mean that I would have less control (or better said none
at all) over PostScript injection than I have from an API like
PrintCore.framework.
Regards,
Dietmar Planitzer
_______________________________________________
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.