Re: NSToolbar in Catalina
Re: NSToolbar in Catalina
- Subject: Re: NSToolbar in Catalina
- From: "St John, David R via Cocoa-dev" <email@hidden>
- Date: Mon, 23 Mar 2020 17:59:53 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xerox.com; dmarc=pass action=none header.from=xerox.com; dkim=pass header.d=xerox.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z4LOqEwxW+/A0zKl9iVF7zKID7ql2AQkt6zoP+kUChA=; b=iIrht2jWEe3y8O9TokjQFKHM5z83XDliJuqGAiE7wZhT67RSv5hf61SzBKrksPlz0/MyXK9gapNK9lT6OvYcfUvHj8ytObKjB0R9GbF+04CH535msCOpTV+OdfJx/5IlN3TVaLYVhwix+NC9Iw4R/Q8wAU0dbo//wrS27pBJhD1Qa55v1Qqh2ZUWX9N/CLj45seDV1tjPiTPFgu8o0wKwgPGNqOYuDSyZyNCuHOU0vcRnCPDltCX38+DwEhwGQF1x1/F9bBjm1e1IpdOTvILEqSsTkL94hZai/tyIEFH12nIt+L+8aobDOqpM4fcUaKRUWV5I2ED5XqNRss5c9zUrw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kHMc99tGfJseiC7yjZt9I5cFv1nPhq2SUekzRdpi+HgGega24uuwOyOz6ouwBk36oG+FtHp8uIWk2ekFewJqjj3bMd7++5CyhcOxzagjCGvS6zmxpdIY/h6U3qMbe7jnFzR3H9EqvWbbpL9ykUS+UAgQEk2ZGBuBOFYCsSZUK1IcScarabBbIjeSMsdFef/6huwKUZw9UzPrR7FovJ8tUPS9m7Ztz+0WFC95wFVGrKcf36rxk8GZKfl3V69QEJjHcO0FMijVhWZqb426lGshiCPS7EE20f2r3Zjqz+xd97HUZEvVPxrE21014V3TTcJpT5Y03UX4qwForBPQe6ViWg==
- Ironport-sdr: eKmUKwsPiK2YgfPNlNGBZvTYTiQJrZU8pwUhNKmKtMrhatvIVhxhbi3X9bSROni7kZfd2jWvmS 5PJV/QqmTUAzbb9sZK0uhONQaFjaofB6qo0LLFqlOZCrMhIoWWdtU6XEKzPdx1/1lHkHYpWWn2 S6DaLay0PHcfFhqvfkqReW8ef4NpFHMm1XNvYHkTke6Bxsh8dWJfumVTiJiVGaR+VXWZmOQS8s 3aJK8A5FrK/wJsQbOuKpqvm09GWSQWzTdRC3yrVcYiIrovjJ7Z/4RAkvCA5ipVNWD+aR6302zs H7U=
- Thread-topic: NSToolbar in Catalina
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:
>
> 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
_______________________________________________
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