I had a similar problem with .icns files showing weird graphics but on Mojave
and earlier they were fine. I resolved the issue by using Icon Composer (on
macOS 10.10) to extract the '.icns' file(s) to iconsets and then importing them
into an Asset Library.
The NSImage creation changed to use imageForResource
image = [NSBundle imageForResource:imgName];
-Dave
On 3/23/20, 1:10 PM, "Cocoa-dev on behalf of Tom Doan via Cocoa-dev"
<[email protected] on behalf of
[email protected]> wrote:
To provide a bit of additional information, the toolbar icons are
fetched with
image = [[NSImage alloc]
initByReferencingFile:[mainBundle
pathForResource:identifier ofType:@"icns"]];
> I'm having a very odd problem. I use NSToolbar/NSToolbarItem to
> manage toolbars in my application. Under Catalina (and apparently only
> under Catalina), some of our users (only a few, and not me on my
> development machines) end up with toolbar items that have a very odd
> appearance---some are fine, some are completely whited out, some are
> almost completely whited out with some odd colors added, usually pale
> pink in an area which has nothing to do with the original icon
> appearance. The washed out icons have nothing to do with them being
> tagged inactive---on my machine, inactive icons look correctly dimmed
> and the washed out ones are supposed to be active anyway. Does anyone
> have an idea what the problem might be?
>
> Best regards,
>
> Tom Doan
> Estima
> ---
> 2717 Harrison St
> Evanston, IL 60201
> USA
>
>
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/tomd%40estima.com
>
> This email sent to [email protected]
---
2717 Harrison St
Evanston, IL 60201
USA
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/david.stjohn%40xerox.com
This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]