]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/NSWindow.h
fixed wxDebugContext to work with global and static objects (patch 901031)
[wxWidgets.git] / include / wx / cocoa / NSWindow.h
index 0b2491e70cb8b01e31c8711b9efc780979d3b335..761b28ee0852823b14681190eaaf6b77a44f5406 100644 (file)
@@ -19,6 +19,7 @@ WX_DECLARE_OBJC_HASHMAP(NSWindow);
 
 class WXDLLEXPORT wxMenuBar;
 
+DECLARE_WXCOCOA_OBJC_CLASS(NSMenuItem);
 DECLARE_WXCOCOA_OBJC_CLASS(wxNSWindowDelegate);
 
 class wxCocoaNSWindow
@@ -36,8 +37,8 @@ public:
     virtual void CocoaDelegate_windowDidResignKey(void) { }
     virtual void CocoaDelegate_windowDidBecomeMain(void) { }
     virtual void CocoaDelegate_windowDidResignMain(void) { }
-    virtual void CocoaDelegate_wxMenuItemAction(struct objc_object *sender) = 0;
-    virtual bool CocoaDelegate_validateMenuItem(struct objc_object *sender) = 0;
+    virtual void CocoaDelegate_wxMenuItemAction(WX_NSMenuItem menuItem) = 0;
+    virtual bool CocoaDelegate_validateMenuItem(WX_NSMenuItem menuItem) = 0;
     virtual wxMenuBar* GetAppMenuBar(wxCocoaNSWindow *win);
 protected:
     wxCocoaNSWindow();