Forwards the message to the global NSApplication object, NSApp.
Original signature is '- (NSEvent *)nextEventMatchingMask:(NSUInteger)eventMask untilDate:(NSDate *)expirationDate inMode:(NSString *)runLoopMode dequeue:(BOOL)dequeue'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public virtual NSEvent NextEventMatchingMaskUntilDateInModeDequeue( NSEventMask eventMask, NSDate expirationDate, NSString runLoopMode, bool dequeue )
Public Overridable Function NextEventMatchingMaskUntilDateInModeDequeue ( _ eventMask As NSEventMask, _ expirationDate As NSDate, _ runLoopMode As NSString, _ dequeue As Boolean _ ) As NSEvent
public: virtual NSEvent^ NextEventMatchingMaskUntilDateInModeDequeue( NSEventMask eventMask, NSDate^ expirationDate, NSString^ runLoopMode, bool dequeue )

- eventMask (NSEventMask)
- The mask that the event to return must match.
- expirationDate (NSDate)
- The date until which to wait for events.
- runLoopMode (NSString)
- The run loop mode to use while waiting for events
- dequeue (Boolean)
- YES to remove the returned event from the event queue; NO to leave the returned event in the queue.

The next event whose mask matches eventMask; nil when no matching event was found.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)