MonobjcMonobjc Documented Class Library
DiscardEventsMatchingMaskBeforeEvent Method (mask, lastEvent)
NamespacesMonobjc.AppKitNSApplicationDiscardEventsMatchingMaskBeforeEvent(NSEventMask, NSEvent)

Removes all events matching the given mask and generated before the specified event.

Original signature is '- (void)discardEventsMatchingMask:(NSUInteger)mask beforeEvent:(NSEvent *)lastEvent'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DiscardEventsMatchingMaskBeforeEvent(
	NSEventMask mask,
	NSEvent lastEvent
)
Public Overridable Sub DiscardEventsMatchingMaskBeforeEvent ( _
	mask As NSEventMask, _
	lastEvent As NSEvent _
)
public:
virtual void DiscardEventsMatchingMaskBeforeEvent(
	NSEventMask mask, 
	NSEvent^ lastEvent
)
Parameters
mask (NSEventMask)
Contains one or more flags indicating the types of events to discard. The constants section of the NSEvent class defines the constants you can add together to create this mask. The discussion section also lists some of the constants that are typically used.
lastEvent (NSEvent)
A marker event that you use to indicate which events should be discarded. Events that occurred before this event are discarded but those that occurred after it are not.
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.AppKit (Module: Monobjc.AppKit)