• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE:Problem with NSTimer in Cocoa Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Not able to debug in XCode and ProjectBuilder
  • Next by Date: iChat "Sort by..." animation
  • Previous by thread: Problem with NSTimer in Cocoa Java
  • Next by thread: Controlling NSTextView's ruler accessory view
  • Index(es):
    • Date
    • Thread