In my OS X application, I allow the user to open a Finder window. I would like to use the Finder's icon on my "open Finder" button. My application will be going to the App Store, but I would rather preempt any violation of Apple's policy on using their icons.
So, would such reuse be allowed by Apple? And, could anybody provide a corresponding reference to Apple's documentation? (I thought I had read it was not allowed, but I cannot find it now.)
UPDATE: To handle cases were the application of interest is not running, I used superfell's answer of a previous question, 12166532, as follows:
// Return an application's icon using its bundle identifier
- (NSImage *) applicationIconWithBundleIdentifier: (NSString *) bundleIdentifier
{
NSImage *image = [NSImage imageNamed:NSImageNameComputer]; // fallback icon
NSString *path = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:bundleIdentifier];
if (path) {
image = [[NSWorkspace sharedWorkspace] iconForFile:path];
}
return image;
}
But, I am very grateful to Rob's answers below for putting me on the right track.