X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065e208ec09e3d08d51d9604497f92f53c210f93..b74077ace2413000c5556cbe0c41ab210ac12c54:/src/cocoa/NSControl.mm?ds=sidebyside diff --git a/src/cocoa/NSControl.mm b/src/cocoa/NSControl.mm index ab10708d20..1e6a632de7 100644 --- a/src/cocoa/NSControl.mm +++ b/src/cocoa/NSControl.mm @@ -22,6 +22,7 @@ #include "wx/log.h" #endif // WX_PRECOMP +#include "wx/cocoa/objc/objc_uniquifying.h" #include "wx/cocoa/NSControl.h" #import @@ -35,6 +36,7 @@ - (void)wxNSControlAction: (id)sender; @end //interface wxNSControlTarget +WX_DECLARE_GET_OBJC_CLASS(wxNSControlTarget,NSObject) @implementation wxNSControlTarget : NSObject @@ -47,11 +49,12 @@ } @end //implementation wxNSControlTarget +WX_IMPLEMENT_GET_OBJC_CLASS(wxNSControlTarget,NSObject) // ============================================================================ // wxNSControl // ============================================================================ WX_IMPLEMENT_OBJC_INTERFACE(NSControl) -struct objc_object *wxCocoaNSControl::sm_cocoaTarget = [[wxNSControlTarget alloc] init]; +struct objc_object *wxCocoaNSControl::sm_cocoaTarget = [[WX_GET_OBJC_CLASS(wxNSControlTarget) alloc] init];