Re: NSToolbar in Catalina
Re: NSToolbar in Catalina
- Subject: Re: NSToolbar in Catalina
- From: Tom Doan via Cocoa-dev <email@hidden>
- Date: Mon, 23 Mar 2020 13:24:08 -0500
- Priority: normal
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=email@hidden
> on behalf of email@hidden> 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@hidden) > > 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: >
> m > > This email sent to email@hidden
>
>
> ---
> 2717 Harrison St
> Evanston, IL 60201
> USA
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
> erox.com
>
> This email sent to email@hidden
>
>
---
2717 Harrison St
Evanston, IL 60201
USA
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden