• 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
Re: creating a printer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating a printer


  • Subject: Re: creating a printer
  • From: Dave Camp <email@hidden>
  • Date: Sun, 12 Oct 2008 21:55:55 -0700

On Oct 12, 2008, at 6:54 PM, Scott Ribe wrote:

But how do I add a printer to the system? Any pointers to the right
docs?

I think you'll have to use lpadmin, via NSTask, and it's not particularly
easy to figure out the right options without knowing a good bit about CUPS,
which I don't...

You can do it programatically by sending IPP requests directly to the CUPS server (which is how the lpadmin tool does it) via libcups.


Point your bowser at http://localhost:631 to get documentation on libcups.

To see what requests lpadmin makes to create printers, grab the CUPS source from the Darwin repository or download a snapshot from cups.org.

Dave
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: creating a printer (From: Scott Ribe <email@hidden>)

  • Prev by Date: NSComboBox, bindings, and auto-complete, oh my!
  • Next by Date: Re: waiting for an NSThread
  • Previous by thread: Re: creating a printer
  • Next by thread: drawing centered text in a box
  • Index(es):
    • Date
    • Thread