Printer Queue Names.
Printer Queue Names.
- Subject: Printer Queue Names.
- From: Robert Tillyard <email@hidden>
- Date: Sun, 7 Nov 2004 03:54:39 +0000
I'm using the following code to get a list of printers available on my PowerBook:
NSArray *printers = [NSPrinter printerNames];
for (i = 0; i < [printers count]; i ++)
{
// Need to get the Queue Name: ???
// Add to the linked list of printers found.
addPrinterName ([[printers objectAtIndex: i] cString]);
}
I need to get the Queue Name so that I can pass it to a UNIX server and have it send jobs via CUPS to my printers. I have the lpd code working to print to my printer from the server but I can't find the Queue Name.
I've looked at NSPrinter and NSPrintInfo and unless you need to query a dictionary I can't see a method for getting the Queue Name. The Queue Name shows up when doing a Command-I on the printer.
Has anyone come across such a method?
Regards, Rob.
_______________________________________________
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