#include "wx/cocoa/private/timer.h"
#include "wx/cocoa/autorelease.h"
+#include "wx/cocoa/objc/objc_uniquifying.h"
+
#import <Foundation/NSTimer.h>
// ========================================================================
- (wxCocoaTimerImpl*)timer;
- (void)onNotify:(NSTimer *)theTimer;
@end // interface wxNSTimerData : NSObject
+WX_DECLARE_GET_OBJC_CLASS(wxNSTimerData,NSObject)
@implementation wxNSTimerData : NSObject
- (id)init
m_timer->Notify();
}
@end
+WX_IMPLEMENT_GET_OBJC_CLASS(wxNSTimerData,NSObject)
// ----------------------------------------------------------------------------
// wxCocoaTimerImpl
wxAutoNSAutoreleasePool thePool;
- wxNSTimerData *timerData = [[wxNSTimerData alloc] initWithWxTimer:this];
+ wxNSTimerData *timerData = [[WX_GET_OBJC_CLASS(wxNSTimerData) alloc] initWithWxTimer:this];
m_cocoaNSTimer = [[NSTimer
scheduledTimerWithTimeInterval: millisecs / 1000.0 //seconds
target: timerData