X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/feb8276801ff0a375d5a9221b40d6b45d4552656..a766986f6d443ba1d50e3af25f3306fa56e4518e:/src/cocoa/NSButton.mm diff --git a/src/cocoa/NSButton.mm b/src/cocoa/NSButton.mm index e2436fca0a..00bace286b 100644 --- a/src/cocoa/NSButton.mm +++ b/src/cocoa/NSButton.mm @@ -22,6 +22,7 @@ #include "wx/log.h" #endif // WX_PRECOMP +#include "wx/cocoa/objc/objc_uniquifying.h" #include "wx/cocoa/NSButton.h" #import @@ -39,6 +40,7 @@ WX_IMPLEMENT_OBJC_INTERFACE_HASHMAP(NSButton) - (void)wxNSButtonAction: (id)sender; @end // wxNSButtonTarget +WX_DECLARE_GET_OBJC_CLASS(wxNSButtonTarget,NSObject) @implementation wxNSButtonTarget : NSObject - (void)wxNSButtonAction: (id)sender @@ -49,11 +51,12 @@ WX_IMPLEMENT_OBJC_INTERFACE_HASHMAP(NSButton) } @end // implementation wxNSButtonTarget +WX_IMPLEMENT_GET_OBJC_CLASS(wxNSButtonTarget,NSObject) // ============================================================================ // class wxCocoaNSButton // ============================================================================ -const wxObjcAutoRefFromAlloc wxCocoaNSButton::sm_cocoaTarget = [[wxNSButtonTarget alloc] init]; +const wxObjcAutoRefFromAlloc wxCocoaNSButton::sm_cocoaTarget = [[WX_GET_OBJC_CLASS(wxNSButtonTarget) alloc] init]; void wxCocoaNSButton::AssociateNSButton(WX_NSButton cocoaNSButton) {