How to get all available Paper Feeds and how to change it in NSPrintInfo obj
问题 I'm trying to set the paper feed in a NSPrintInfo object By now, I'm obtaining the paper feed options (from now on trays) from an IPP call ipp_t *request; request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES); ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, printer_uri); respose = cupsDoRequest(http, request, "/"); ... string trays = ippGetString(ippFindAttribute(response, "media-source-supported", IPP_TAG_KEYWORD), 0, NULL); This returns me a comma-separated string