I am looking for a method similar to -[NSWorkspace iconForFile:] , but which returns the icon in higher resolution, if possible. In particular, I have an application that uses QuickLook to display file previews, and I would like it to return to the file icon if there is no smooth viewing of the plugin. However, using the iconForFile: method gives a small 32x32 icon. Is there a better way? One that returns NSImage or CGImageRef is preferred, but less accessible methods can also be great.
cocoa icons macos
Niko Matsakis
source share