X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2ca375c5620209d77a88d2d378bdcdedbc82e7e..4521f6c88cbefa7f13e3733d344776b795f981e4:/src/cocoa/timer.mm diff --git a/src/cocoa/timer.mm b/src/cocoa/timer.mm index ebcae18430..062add4857 100644 --- a/src/cocoa/timer.mm +++ b/src/cocoa/timer.mm @@ -4,7 +4,6 @@ // Author: Ryan Norton // Modified by: David Elliott // Created: 2005-02-04 -// RCS-ID: $Id$ // Copyright: (c) Ryan Norton // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -25,6 +24,8 @@ #include "wx/cocoa/private/timer.h" #include "wx/cocoa/autorelease.h" +#include "wx/cocoa/objc/objc_uniquifying.h" + #import // ======================================================================== @@ -40,6 +41,7 @@ - (wxCocoaTimerImpl*)timer; - (void)onNotify:(NSTimer *)theTimer; @end // interface wxNSTimerData : NSObject +WX_DECLARE_GET_OBJC_CLASS(wxNSTimerData,NSObject) @implementation wxNSTimerData : NSObject - (id)init @@ -68,6 +70,7 @@ m_timer->Notify(); } @end +WX_IMPLEMENT_GET_OBJC_CLASS(wxNSTimerData,NSObject) // ---------------------------------------------------------------------------- // wxCocoaTimerImpl @@ -89,7 +92,7 @@ bool wxCocoaTimerImpl::Start(int millisecs, bool oneShot) 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