How do I get the icon from another application using Objective-C?
I have tried this so far, however it just returns null:
null
NSURL *path = [NSU
You can use NSWorkspace, e.g.
NSImage *image = [[NSWorkspace sharedWorkspace] iconForFile:path];
If you want to use the app bundleId instead of knowing its path, you can do this first
bundleId
path = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:bundleIdentifier];