MonobjcMonobjc Documented Class Library
ScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats Method (seconds, target, aSelector, userInfo, repeats)
NamespacesMonobjc.FoundationNSTimerScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(Double, Id, IntPtr, Id, Boolean)

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 target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSTimer ScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(
	double seconds,
	Id target,
	IntPtr aSelector,
	Id userInfo,
	bool repeats
)
Public Shared Function ScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats ( _
	seconds As Double, _
	target As Id, _
	aSelector As IntPtr, _
	userInfo As Id, _
	repeats As Boolean _
) As NSTimer
public:
static NSTimer^ ScheduledTimerWithTimeIntervalTargetSelectorUserInfoRepeats(
	double seconds, 
	Id^ target, 
	IntPtr aSelector, 
	Id^ userInfo, 
	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.
target (Id)
The object to which to send the message specified by aSelector when the timer fires. The target object is retained by the timer and released when the timer is invalidated.
aSelector (IntPtr)
The message to send to target when the timer fires. The selector must have the following signature:
userInfo (Id)
The user info for the timer. The object you specify is retained by the timer and released when the timer is invalidated. This parameter may be nil.
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)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)