I'm updating menu items as the user types in the NSSearchField. The number of menu items is up to number of search results. When number of search results stays the same and update menu items with new results (remove previous NSMenuItems and add new upon the search results), the menu is not being updated.
You mean I need to update my menu with new search results in menuNeedsUpdate? I tried this, it didn't work On Jul 21, 2010, at 6:33 PM, Jerry Krinock wrote: > > On 2010 Jul 21, at 05:27, Nava Carmon wrote: > >> I'm implementing a custom status bar menu ... How do I force them to redraw? > > I'm not sure I quite understand your situation, but usually the answer is to > implement the -menuNeedsUpdate:. This method is invoked whenever the menu is > about to be displayed, which should be sufficient. > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/ncarmon%40mac.com > > This email sent to ncar...@mac.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com