How to force NSMenu to redraw its menu items?
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