Mac OS X: Print directly from file/URL?
问题 I want to code a litte utility that can print a page from a an URL, the URL would deliver a standard file (like a pdf or a jpg picture) and I just want to print this from within my cocoa app without showing any dialog, is that possible? I can't find anything about this in the docs except for a thing telling me to build a view with the file and then print this view but is this really necessary? Any help appreciated. Thanks, Philip 回答1: You don't need to show the NSView in order to print. Just