Re: Odd stuff with Cocoa-Java
Re: Odd stuff with Cocoa-Java
- Subject: Re: Odd stuff with Cocoa-Java
- From: Andreas Monitzer <email@hidden>
- Date: Mon, 1 Oct 2001 09:11:20 +0200
On Monday, October 1, 2001, at 06:14 , David McCabe wrote:
(This is it so pay attention): the timer does not start. Let me repeat
that. The timer doesn't start.
NSSelector fireMethod = new NSSelector("Fire", null);
NSTimer myTimer = new NSTimer( minutes * 60, this, fireMethod,
null, false );
Still looking for the line where you insert the timer into the runloop...
NSRunLoop:
addTimerForMode
public void addTimerForMode(
NSTimer aTimer,
String aString)
Registers the timer aTimer with input mode mode. The run loop causes the
timer to fire on or after its scheduled fire date. Timers have a message
associated with them. When a timer fires, it sends its message to the
appropriate object. To remove a timer from a mode, send the invalidate
message to the timer.
andy
--
Discussion forthcoming.