On looking at the particulars of the icons that are working and those 
that are not, it looks like anything that has a high resolution (128 x 
128) is displaying wrong, while the ones that I never updated from 
48 x 48 work correctly.

> 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" <cocoa-dev-bounces+david.stjohn=xerox....@lists.apple.com
> on behalf of Cocoa-dev@lists.apple.com> 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 (Cocoa-dev@lists.apple.com) > > 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.co
>     m > > This email sent to t...@estima.com
> 
> 
>     ---
>     2717 Harrison St
>     Evanston, IL 60201
>     USA
> 
> 
>     _______________________________________________
> 
>     Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
>     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%40x
>     erox.com
> 
>     This email sent to david.stj...@xerox.com
> 
> 


---
2717 Harrison St
Evanston, IL 60201
USA


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to