I am writing a Cocoa App which shuold call cups API to allow the user to add printer to mac , but entering the IP address or Queue. I am not sure how to do that in code and which API's to use.