X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7848088476db284a94f19eeb24411b45d676ac46..88ff049184c77fd73b60c01f4f831860d2ec5cef:/src/cocoa/NSTabView.mm diff --git a/src/cocoa/NSTabView.mm b/src/cocoa/NSTabView.mm index b3255cd51b..16e1ff3f4a 100644 --- a/src/cocoa/NSTabView.mm +++ b/src/cocoa/NSTabView.mm @@ -1,10 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: cocoa/NSTabView.mm +// Name: src/cocoa/NSTabView.mm // Purpose: wxCocoaNSTabView // Author: David Elliott // Modified by: // Created: 2004/04/08 -// RCS-ID: $Id$ // Copyright: (c) 2004 David Elliott // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -15,6 +14,8 @@ #include "wx/cocoa/NSTabView.h" +#include "wx/cocoa/objc/objc_uniquifying.h" + #include // ============================================================================ @@ -27,6 +28,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 +47,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) {