• 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: "Rimas M." <email@hidden>
  • Date: Wed, 03 Aug 2011 10:56:20 +0300

Hi Glenn,

Thank you for answering. Now I can understand why menu item title is black
in fonts popup of iWork apps. Even if they are selected.

Regards,

RImas M.

On Tue, Aug 2, 2011 at 6:13 PM, Glenn L. Austin <email@hidden>wrote:
>
> Yes -- don't do that!!!
>
> You are asking the system to not only iterate through all of the fonts and
> styles, but to also set each menu item's text to that font and style.  The
> iteration part is fairly quick, setting the item text requires that the font
> be loaded and prepared for use just to draw that *one text item*.  Preparing
> each font takes a small amount of time, but multiplied by the 100+ fonts on
> a system gives you a noticeable time delay.
>
> Most applications that draw the font menu using the fonts actually
> pre-create the menu items as images of the menu item text, then only display
> the image in the menu.
>
> (History: I've worked on both the AppleWorks and the Microsoft Office 2011
> font menus in my career.)
>
_______________________________________________

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

  • Follow-Ups:
    • Re: Long delay of NSPopUpButton first click
      • From: "Rimas M." <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>)

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