Re: Status bar item icon is always black

2020-06-19 Thread Gabriel Zachmann via Cocoa-dev
I think, I solved the mystery. Just for the record, in case someone else stumbles across this (it's probably old news for you guys on this list): You can use a vector drawing in a PDF , drag it into the asset catalog (not into the default AppIcon!), and load it as if it were a regular image ,

Re: Status bar item icon is always black

2020-06-19 Thread Ilya Kulakov via Cocoa-dev
➜ identify -verbose status-bar.pdf Image: Filename: status-bar.pdf Format: PDF (Portable Document Format) Mime type: application/pdf Class: DirectClass Geometry: 18x14+0+0 Resolution: 72x72 Print size: 0.25x0.19 Units: Undefined Colorspace: sRGB Type: Bilevel Base type:

Re: Status bar item icon is always black

2020-06-19 Thread Gabriel Zachmann via Cocoa-dev
Thanks a lot for your response! One question: do you have just one PDF file in the asset catalog? If so, in which "box"? (16x16, .., 256x256?) > > Our image is different in the following aspects though: > > 1. It's a vector image (PDF) > 2. In the asset catalog the Preserve Vector Data option

Status bar item icon is always black

2020-06-19 Thread Ilya Kulakov via Cocoa-dev
> Here is the code: The code is sound, that's exactly what we use and the image is rendered appropriately. Our image is different in the following aspects though: 1. It's a vector image (PDF) 2. In the asset catalog the Preserve Vector Data option is checked 3. In the asset catalog the Scales

Re: Status bar item icon is always black

2020-06-19 Thread Gabriel Zachmann via Cocoa-dev
Thanks a lot for your response. For further info: this is what I have in Xcode: https://owncloud.informatik.uni-bremen.de/index.php/s/T9SrFWNTxRbW83S > Yeah, the isTemplate definitely shouldn't be set, that would cause that > issue, I'd have expected setting that to false to fix your issue.

Re: Status bar item icon is always black

2020-06-19 Thread Uli Kusterer via Cocoa-dev
Yeah, the isTemplate definitely shouldn't be set, that would cause that issue, I'd have expected setting that to false to fix your issue. I also think there was a feature where NSImage would automatically set the template flag when an image's name ended in "Template" or something like that.