FROM : Andrew Kinnie
DATE : Wed Apr 20 20:45:53 2005
I am having issues with the Cocoa printing system. I am writing a POS
app, and am trying to work with a receipt printer.
First, despite changing the printer programmatically in the NSPrintInfo
object I got from the [NSPrintInfo sharedPrintInfo] method, when I
print (without showing the print panel), the print job goes to the
default printer. I was under the impression that the sharedPrintInfo
object was created for each app, and that setting the printer would
tell the app to use that printer for print jobs. This isn't a big
deal, but obviously requiring the user to have a print panel pop up
every time they print, just so they can select the receipt printer is
annoying if the mac is ever used for anything else.
Second, I also hand coded the paper size, because I can't figure out
how to determine the available paper sizes for a particular printer.
Is there a way to do this?
Andrew
DATE : Wed Apr 20 20:45:53 2005
I am having issues with the Cocoa printing system. I am writing a POS
app, and am trying to work with a receipt printer.
First, despite changing the printer programmatically in the NSPrintInfo
object I got from the [NSPrintInfo sharedPrintInfo] method, when I
print (without showing the print panel), the print job goes to the
default printer. I was under the impression that the sharedPrintInfo
object was created for each app, and that setting the printer would
tell the app to use that printer for print jobs. This isn't a big
deal, but obviously requiring the user to have a print panel pop up
every time they print, just so they can select the receipt printer is
annoying if the mac is ever used for anything else.
Second, I also hand coded the paper size, because I can't figure out
how to determine the available paper sizes for a particular printer.
Is there a way to do this?
Andrew
| Related mails | Author | Date |
|---|---|---|
| Andrew Kinnie | Apr 20, 20:45 | |
| Frank Fenn | Apr 22, 08:49 | |
| Andrew Kinnie | Apr 22, 12:42 | |
| billmonk | Apr 23, 03:16 | |
| Dave Camp | Apr 25, 17:55 |






Cocoa mail archive

