Re: creating a printer
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