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

How to force NSMenu to redraw its menu items?


  • Subject: How to force NSMenu to redraw its menu items?
  • From: Nava Carmon <email@hidden>
  • Date: Wed, 21 Jul 2010 15:27:28 +0300

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?

In the function, that rebuilds the menu I remove first all items and then create new items according to the search results.

Thanks,

Nava


_______________________________________________

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: Kyle Sluder <email@hidden>
    • Re: How to force NSMenu to redraw its menu items?
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Debugger hangs?
  • Next by Date: Knowing how a Text Editing Session ended
  • Previous by thread: Re: Debugger hangs?
  • Next by thread: Re: How to force NSMenu to redraw its menu items?
  • Index(es):
    • Date
    • Thread