Creates and returns a new NSTimer object and schedules it on the current run loop in the default mode.
Original signature is '+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds invocation:(NSInvocation *)invocation repeats:(BOOL)repeats'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSTimer ScheduledTimerWithTimeIntervalInvocationRepeats( double seconds, NSInvocation invocation, bool repeats )
Public Shared Function ScheduledTimerWithTimeIntervalInvocationRepeats ( _ seconds As Double, _ invocation As NSInvocation, _ repeats As Boolean _ ) As NSTimer
public: static NSTimer^ ScheduledTimerWithTimeIntervalInvocationRepeats( double seconds, NSInvocation^ invocation, bool repeats )
Parameters
- seconds (Double)
- The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead.
- invocation (NSInvocation)
- The invocation to use when the timer fires. The timer instructs the invocation object to retain its arguments.
- repeats (Boolean)
- If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires.
Return Value
A new NSTimer object, configured according to the specified parameters.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)