Printing issues
Printing issues
- Subject: Printing issues
- From: Andrew Kinnie <email@hidden>
- Date: Wed, 20 Apr 2005 14:45:53 -0400
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden