X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7848088476db284a94f19eeb24411b45d676ac46..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/cocoa/NSTabView.mm?ds=inline diff --git a/src/cocoa/NSTabView.mm b/src/cocoa/NSTabView.mm index b3255cd51b..1a36858eba 100644 --- a/src/cocoa/NSTabView.mm +++ b/src/cocoa/NSTabView.mm @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: cocoa/NSTabView.mm +// Name: src/cocoa/NSTabView.mm // Purpose: wxCocoaNSTabView // Author: David Elliott // Modified by: @@ -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) {