- inline wxCocoaNSMenu()
- {
- m_cocoaNSMenu = NULL;
- }
- ~wxCocoaNSMenu();
-// ------------------------------------------------------------------------
-// Cocoa specifics
-// ------------------------------------------------------------------------
-public:
- bool CocoaCreate(const wxString &title);
- inline WX_NSMenu GetNSMenu() { return m_cocoaNSMenu; }
-protected:
- WX_NSMenu m_cocoaNSMenu;
-// ------------------------------------------------------------------------
-// Implementation
-// ------------------------------------------------------------------------
+ void AssociateNSMenu(WX_NSMenu cocoaNSMenu, unsigned int flags = 0);
+ void DisassociateNSMenu(WX_NSMenu cocoaNSMenu);
+ enum
+ { OBSERVE_DidAddItem = 0x01
+ , OBSERVE_DidChangeItem = 0x02
+ , OBSERVE_DidRemoveItem = 0x04
+ , OBSERVE_DidSendAction = 0x08
+ , OBSERVE_WillSendAction = 0x10
+ };
+ virtual void Cocoa_dealloc() {}
+ virtual void CocoaNotification_menuDidAddItem(WX_NSNotification notification) {}
+ virtual void CocoaNotification_menuDidChangeItem(WX_NSNotification notification) {}
+ virtual void CocoaNotification_menuDidRemoveItem(WX_NSNotification notification) {}
+ virtual void CocoaNotification_menuDidSendAction(WX_NSNotification notification) {}
+ virtual void CocoaNotification_menuWillSendAction(WX_NSNotification notification) {}