RE:Problem with NSTimer in Cocoa Java
RE:Problem with NSTimer in Cocoa Java
- Subject: RE:Problem with NSTimer in Cocoa Java
- From: Marc Pergand <email@hidden>
- Date: Tue, 13 Jan 2004 12:11:17 -0800
I haven't experienced any problem this NSTimer. Code example:
NSSelector selector=new NSSelector("myTimer",new
Class[]{NSTimer.class});
NSTimer timer=new NSTimer(.2, this, selector,null,true);
NSRunLoop runLoop=NSRunLoop.currentRunLoop();
runLoop.addTimerForMode(timer,NSRunLoop.DefaultRunLoopMode);
// method called
public void myTimer(NSTimer timer)
{
}
Marc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.