• 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: NSMenu problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenu problems


  • Subject: Re: NSMenu problems
  • From: Eric Schlegel <email@hidden>
  • Date: Mon, 01 Mar 2010 09:17:34 -0800

On Mar 1, 2010, at 8:33 AM, email@hidden wrote:

> 3) When typing in the search field, the menu is updated to show the
> search results. This means the width of the menu is expanded to fit
> the new items. But when I clear the search field and the menu items
> are reset to their default values, the menu  doesn't shrink again.
> Calling the deprecated sizeToFit method has no effect.

The Menu Manager won't shrink the menu until it's closed and reopened again. This is to avoid annoying visual distractions to the user as the menu resizes larger/smaller/larger/smaller.

-eric

_______________________________________________

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: NSMenu problems
      • From: "email@hidden" <email@hidden>
References: 
 >NSMenu problems (From: "email@hidden" <email@hidden>)
 >Fwd: NSMenu problems (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Using CFMutableDictionaryRef
  • Next by Date: Re: Audio APIs [Carbon is C++?]
  • Previous by thread: Fwd: NSMenu problems
  • Next by thread: Re: NSMenu problems
  • Index(es):
    • Date
    • Thread