• 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: Odd stuff with Cocoa-Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd stuff with Cocoa-Java


  • Subject: Re: Odd stuff with Cocoa-Java
  • From: Simon Wright <email@hidden>
  • Date: Mon, 1 Oct 2001 08:42:38 -0400

On Monday, October 1, 2001, at 03:11 AM, Andreas Monitzer wrote:

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.

Related question: is it necessary to "invalidate" a run-once timer?

Simon


References: 
 >Re: Odd stuff with Cocoa-Java (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: capturing the information of the application being mouse clicked
  • Next by Date: Re: NSScrollView and general IB annoyance
  • Previous by thread: Re: Odd stuff with Cocoa-Java
  • Next by thread: Re: Odd stuff with Cocoa-Java
  • Index(es):
    • Date
    • Thread