Fix (at least) slider action messages in GC mode.
Copyright 2008 Software 2000 Ltd. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/cocoa/objc/objc_uniquifying.h"
|
#include "wx/cocoa/objc/objc_uniquifying.h"
|
||||||
|
#include "wx/cocoa/ObjcRef.h"
|
||||||
#include "wx/cocoa/NSControl.h"
|
#include "wx/cocoa/NSControl.h"
|
||||||
|
|
||||||
#import <Foundation/NSObject.h>
|
#import <Foundation/NSObject.h>
|
||||||
@@ -56,5 +57,8 @@ WX_IMPLEMENT_GET_OBJC_CLASS(wxNSControlTarget,NSObject)
|
|||||||
// ============================================================================
|
// ============================================================================
|
||||||
WX_IMPLEMENT_OBJC_INTERFACE(NSControl)
|
WX_IMPLEMENT_OBJC_INTERFACE(NSControl)
|
||||||
|
|
||||||
struct objc_object *wxCocoaNSControl::sm_cocoaTarget = [[WX_GET_OBJC_CLASS(wxNSControlTarget) alloc] init];
|
// New CF-retained observer (this should have been using wxObjcAutoRefFromAlloc to begin with)
|
||||||
|
wxObjcAutoRefFromAlloc<wxNSControlTarget*> s_cocoaNSControlTarget = [[WX_GET_OBJC_CLASS(wxNSControlTarget) alloc] init];
|
||||||
|
// For compatibility with old code
|
||||||
|
struct objc_object *wxCocoaNSControl::sm_cocoaTarget = s_cocoaNSControlTarget;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user