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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to