X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065e208ec09e3d08d51d9604497f92f53c210f93..a43a9e5521440dbb28037646ed4a07125c8823a9:/src/cocoa/NSTabView.mm diff --git a/src/cocoa/NSTabView.mm b/src/cocoa/NSTabView.mm index 32a5751196..3d48af6ec0 100644 --- a/src/cocoa/NSTabView.mm +++ b/src/cocoa/NSTabView.mm @@ -15,6 +15,8 @@ #include "wx/cocoa/NSTabView.h" +#include "wx/cocoa/objc/objc_uniquifying.h" + #include // ============================================================================ @@ -27,6 +29,7 @@ - (void)tabView:(NSTabView*)tabView didSelectTabViewItem:(NSTabViewItem*)tabViewItem; - (BOOL)tabView:(NSTabView*)tabView shouldSelectTabViewItem:(NSTabViewItem*)tabViewItem; @end // interface wxNSTabViewDelegate : NSObject +WX_DECLARE_GET_OBJC_CLASS(wxNSTabViewDelegate,NSObject) @implementation wxNSTabViewDelegate : NSObject - (void)tabView:(NSTabView*)tabView didSelectTabViewItem:(NSTabViewItem*)tabViewItem @@ -45,13 +48,14 @@ } @end // implementation wxNSTabViewDelegate : NSObject +WX_IMPLEMENT_GET_OBJC_CLASS(wxNSTabViewDelegate,NSObject) // ============================================================================ // class wxCocoaNSTabView // ============================================================================ WX_IMPLEMENT_OBJC_INTERFACE_HASHMAP(NSTabView) -wxObjcAutoRefFromAlloc wxCocoaNSTabView::sm_cocoaDelegate = [[wxNSTabViewDelegate alloc] init]; +wxObjcAutoRefFromAlloc wxCocoaNSTabView::sm_cocoaDelegate = [[WX_GET_OBJC_CLASS(wxNSTabViewDelegate) alloc] init]; void wxCocoaNSTabView::AssociateNSTabView(WX_NSTabView cocoaNSTabView) {