NSMenuDelegate not called for submenu in NSMenuItem created by another NSMenuDelegate
问题 I have an NSStatusItem with an NSMenu that has a delegate. This delegate dynamically updates the menu based on a few factors. So per the documentation, to quickly update the menu, I use the method: - (BOOL)menu:(NSMenu *)menu updateItem:(NSMenuItem *)item atIndex:(NSInteger)index shouldCancel:(BOOL)shouldCancel; At the appropriate time in this method I call the following: NSMenu *submenu = [[NSMenu alloc] init]; SomeSubmenuDelegate *submenuDelegate = [[SomeSubmenuDelegate alloc] init];