Re: Long delay of NSPopUpButton first click
Re: Long delay of NSPopUpButton first click
- Subject: Re: Long delay of NSPopUpButton first click
- From: Kyle Sluder <email@hidden>
- Date: Wed, 31 Aug 2011 10:50:15 -0700
On Wed, Aug 31, 2011 at 10:05 AM, Jens Alfke <email@hidden> wrote:
>
> On Aug 31, 2011, at 2:19 AM, Rimas M. wrote:
>
>> Not really. Unless I am missing something. Menu-item's background is changing when item is selected (blue one, by default).
>
> C’mon, be creative. Cache two copies of the image, one with the plain background and one with the highlighted.
FWIW, iWork 09 does not do sub-pixel AA in its font popup. Which means
they only have to cache one bitmap and composite it against the
system-provided menu item.
This is useful because the selected menu item color is actually a
gradient, not a solid color. The downside is that the menu items draw
black-on-blue, instead of white-on-blue like elsewhere in the OS.
Since they're not using sub-pixel AA, I wonder if a simple color
inversion would work when drawing the selected menu item.
--Kyle Sluder
_______________________________________________
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