public static NSImage SCImageFromApplication(string name) { NSImage image = null; var path = NSWorkspace.SharedWorkspace.FullPathForApplication(name); if (path != null) { image = NSWorkspace.SharedWorkspace.IconForFile(path); image = Utils.SCCopyWithResolution(image, 512); } if (image == null) { image = NSImage.ImageNamed(NSImageName.Caution); } return(image); }