• 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: How to force NSMenu to redraw its menu items?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to force NSMenu to redraw its menu items?


  • Subject: Re: How to force NSMenu to redraw its menu items?
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 21 Jul 2010 08:46:23 -0700

On Jul 21, 2010, at 5:27 AM, Nava Carmon <email@hidden> wrote:

> Hi,
>
> I'm implementing a custom status bar menu, which has a custom view with NSSearchField. I'm updating number of menu items according to search results. The number of menu items is changed as user types in the NSSearchField. I've noticed, that if number of results stays the same, items titles are not updated (redrawn). How do I force them to redraw?

Side note: It's been mentioned a few times in the past week or so that you'll be better off if you don't use NSMenu, but instead a custom borderless window. This is the approach Spotlight takes. It's worth taking that into consideration earlier rather than later.

--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

  • Follow-Ups:
    • Re: How to force NSMenu to redraw its menu items?
      • From: Jerry Krinock <email@hidden>
References: 
 >How to force NSMenu to redraw its menu items? (From: Nava Carmon <email@hidden>)

  • Prev by Date: Re: How to force NSMenu to redraw its menu items?
  • Next by Date: Re: Debugger hangs?
  • Previous by thread: Re: How to force NSMenu to redraw its menu items?
  • Next by thread: Re: How to force NSMenu to redraw its menu items?
  • Index(es):
    • Date
    • Thread