MonobjcMonobjc Documented Class Library
RunModeBeforeDate Method (mode, limitDate)
NamespacesMonobjc.FoundationNSRunLoopRunModeBeforeDate(NSString, NSDate)

Runs the loop once, blocking for input in the specified mode until a given date.

Original signature is '- (BOOL)runMode:(NSString *)mode beforeDate:(NSDate *)limitDate'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool RunModeBeforeDate(
	NSString mode,
	NSDate limitDate
)
Public Overridable Function RunModeBeforeDate ( _
	mode As NSString, _
	limitDate As NSDate _
) As Boolean
public:
virtual bool RunModeBeforeDate(
	NSString^ mode, 
	NSDate^ limitDate
)
Parameters
mode (NSString)
The mode in which to run. You may specify custom modes or use one of the modes listed in “Run Loop Modes.”
limitDate (NSDate)
The date until which to block.
Return Value
YES if the run loop ran and processed an input source or if the specified timeout value was reached; otherwise, NO if the run loop could not be started.
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)