Re: Long delay of NSPopUpButton first click
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