X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7848088476db284a94f19eeb24411b45d676ac46..fab8784c715b09462d6b05dd93a3b4776cb205c9:/src/cocoa/NSTabView.mm diff --git a/src/cocoa/NSTabView.mm b/src/cocoa/NSTabView.mm index b3255cd51b..5bff3eda3e 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) {