- (void)menuNeedsUpdate:(NSMenu*)smenu;
#else
- (void)menuWillOpen:(NSMenu *)menu;
-- (void)menuDidClose:(NSMenu *)menu;
#endif
+- (void)menuDidClose:(NSMenu *)menu;
- (void)menu:(NSMenu *)menu willHighlightItem:(NSMenuItem *)item;
@end
wxpeer->HandleMenuOpened();
}
}
+#endif
- (void)menuDidClose:(NSMenu *)smenu
{
wxpeer->HandleMenuClosed();
}
}
-#endif
- (void)menu:(NSMenu *)smenu willHighlightItem:(NSMenuItem *)item
{
}
[menu setDelegate:controller];
[m_osxMenu setImplementation:this];
- [menu setAutoenablesItems:NO];
// gc aware
if ( m_osxMenu )
CFRetain(m_osxMenu);
virtual void InsertOrAppend(wxMenuItem *pItem, size_t pos)
{
NSMenuItem* nsmenuitem = (NSMenuItem*) pItem->GetPeer()->GetHMenuItem();
- // make sure a call of SetSubMenu is also reflected (occuring after Create)
+ // make sure a call of SetSubMenu is also reflected (occurring after Create)
// update the native menu item accordingly
if ( pItem->IsSubMenu() )