[Openmcl-devel] Bridge and NSTimer
Phil
pbpublist at comcast.net
Tue May 1 14:23:38 PDT 2007
Is there anything special to getting NSTimer to work via the bridge?
I don't see anything wrong with this code but the timer doesn't seem
to be firing.
(defclass timer-test (ns:ns-object)
()
(:metaclass ns:+ns-object))
(ccl::define-objc-method ((:void :timer-fired the-timer) timer-test)
(#_NSLog #@"timer fired"))
(setf mytimer-objc (objc:make-objc-instance "TimerTest"))
(objc:send (objc:@class "NSTimer")
"scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"
1.0d0
mytimer-objc
(objc:@selector "timerFired:")
nil
nil)
Thanks,
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20070501/c95303e9/attachment.htm>
More information about the Openmcl-devel
mailing list