• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Long delay of NSPopUpButton first click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Long delay of NSPopUpButton first click (From: "Rimas M." <email@hidden>)
 >Re: Long delay of NSPopUpButton first click (From: "Glenn L. Austin" <email@hidden>)
 >Re: Long delay of NSPopUpButton first click (From: "Rimas M." <email@hidden>)
 >Re: Long delay of NSPopUpButton first click (From: "Rimas M." <email@hidden>)
 >Re: Long delay of NSPopUpButton first click (From: "Rimas M." <email@hidden>)
 >Re: Long delay of NSPopUpButton first click (From: Jens Alfke <email@hidden>)
 >Re: Long delay of NSPopUpButton first click (From: "Rimas M." <email@hidden>)
 >Re: Long delay of NSPopUpButton first click (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Long delay of NSPopUpButton first click
  • Next by Date: Re: LLVM 2.1 Error
  • Previous by thread: Re: Long delay of NSPopUpButton first click
  • Next by thread: How to detect Time Machine volume?
  • Index(es):
    • Date
    • Thread