MonobjcMonobjc Documented Class Library
InitWithFireDateIntervalTargetSelectorUserInfoRepeats Method (date, seconds, target, aSelector, userInfo, repeats)
NamespacesMonobjc.FoundationNSTimerInitWithFireDateIntervalTargetSelectorUserInfoRepeats(NSDate, Double, Id, IntPtr, Id, Boolean)

Initializes a new NSTimer object using the specified object and selector.

Original signature is '- (id)initWithFireDate:(NSDate *)date interval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats'

Available in Mac OS X v10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithFireDateIntervalTargetSelectorUserInfoRepeats(
	NSDate date,
	double seconds,
	Id target,
	IntPtr aSelector,
	Id userInfo,
	bool repeats
)
Public Overridable Function InitWithFireDateIntervalTargetSelectorUserInfoRepeats ( _
	date As NSDate, _
	seconds As Double, _
	target As Id, _
	aSelector As IntPtr, _
	userInfo As Id, _
	repeats As Boolean _
) As Id
public:
virtual Id^ InitWithFireDateIntervalTargetSelectorUserInfoRepeats(
	NSDate^ date, 
	double seconds, 
	Id^ target, 
	IntPtr aSelector, 
	Id^ userInfo, 
	bool repeats
)
Parameters
date (NSDate)
The time at which the timer should first fire.
seconds (Double)
For a repeating timer, this parameter contains 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)
Custom 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
The receiver, initialized such that, when added to a run loop, it will fire at date and then, if repeats is YES, every seconds after that.
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)