• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Printer Queue Names.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Regex pattern to find URLs
  • Next by Date: Re: Book about creating Cocoa widgets
  • Previous by thread: Re: Help: Odd crash, perhaps WebKit related
  • Next by thread: Help Viewer Loading Blank Page
  • Index(es):
    • Date
    • Thread