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