toggle quoted messageShow quoted text
There also should be a special size for the small alert icon within your app’s icon xcassets file.
On Aug 30, 2018, at 12:13 AM, Quincey Morris <quinceymorris@...
On Aug 29, 2018, at 20:47 , Gerriet M. Denkmann <g@...
There must be a simple answer (which becomes immediately obvious once known) to this.
There’s also a NSWorkspace method to get the icon for a file.
And — I’ve never tried — you may be able to use NSDataAsset to peek into the asset catalog directly.
But I wouldn’t bother. It’s easier to add a separate copy of the actual image to an asset catalog *as an image*, and to use [NSImage imageNamed:] to get it. That puts the resolution/size under your control, and you can customize the image (e.g. sub-badging it with a caution or error icon) if you decide you need to, and it’s one line of code to get.