Platforms to show: All Mac Windows Linux Cross-Platform
NSEventMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacBase Plugin | 7.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Notes: This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 50 properties
- property absoluteX as Integer
- property absoluteY as Integer
- property absoluteZ as Integer
- property associatedEventsMask as Integer
- property buttonMask as Integer
- property buttonNumber as Integer
- property capabilityMask as Integer
- property CGEventRef as Integer
- property characters as string
- property charactersIgnoringModifiers as string
- property clickCount as Integer
- property data1 as Integer
- property data2 as Integer
- property deltaX as Double
- property deltaY as Double
- property deltaZ as Double
- property description as string
- property deviceID as Integer
- property eventNumber as Integer
- property Handle as Integer
- property hasPreciseScrollingDeltas as boolean
- property isARepeat as boolean
- property isDirectionInvertedFromDevice as boolean
- property isEnteringProximity as boolean
- property keyCode as Integer
- property locationInWindow as NSPointMBS
- property magnification as Double
- property modifierFlags as Integer
- property pointingDeviceID as Integer
- property pointingDeviceSerialNumber as Integer
- property pointingDeviceType as Integer
- property pressure as Double
- property rotation as Double
- property scrollingDeltaX as Double
- property scrollingDeltaY as Double
- property stage as Integer
- property stageTransition as Double
- property subtype as Integer
- property systemTabletID as Integer
- property tabletID as Integer
- property tangentialPressure as Double
- property tilt as NSPointMBS
- property timestamp as Double
- property trackingNumber as Integer
- property type as Integer
- property uniqueID as UInt64
- property vendorID as Integer
- property vendorPointingDeviceType as Integer
- property window as NSWindowMBS
- property windowNumber as Integer
- method Constructor
- 9 shared methods
- shared method doubleClickInterval as Double
- shared method eventWithCGEvent(CGEventRef as Integer) as NSEventMBS
- shared method isMouseCoalescingEnabled as boolean
- shared method keyRepeatDelay as Double
- shared method keyRepeatInterval as Double
- shared method modifierFlagsGlobal as UInt32
- shared method mouseLocation as NSPointMBS
- shared method pressedMouseButtons as UInt32
- shared method setMouseCoalescingEnabled(Value as boolean)
- 161 constants
This class has no sub classes.
Some methods using this class:
- NSApplicationMBS.discardEventsMatchingMask(mask as Integer, beforeEvent as NSEventMBS)
- NSResponderMBS.beginGestureWithEvent(e as NSEventMBS)
- NSResponderMBS.mouseExited(e as NSEventMBS)
- NSResponderMBS.mouseUp(e as NSEventMBS)
- NSResponderMBS.otherMouseDown(e as NSEventMBS)
- NSResponderMBS.rightMouseDown(e as NSEventMBS)
- NSResponderMBS.swipeWithEvent(e as NSEventMBS)
- NSScrollerMBS.trackKnob(theEvent as NSEventMBS)
- NSScrollerMBS.trackScrollButtons(theEvent as NSEventMBS)
- NSWindowMBS.sendEvent(e as NSEventMBS)
Some properties using for this class:
- NSApplicationMBS.currentEvent as NSEventMBS
- NSWindowMBS.currentEvent as NSEventMBS
Some events using this class:
- CustomNSTextFieldMBS.beginGestureWithEvent(e as NSEventMBS) as boolean
- CustomNSTextFieldMBS.magnifyWithEvent(e as NSEventMBS) as boolean
- CustomNSTextViewMBS.acceptsFirstMouse(e as NSEventMBS) as boolean
- CustomNSTokenFieldMBS.magnifyWithEvent(e as NSEventMBS) as boolean
- CustomNSTokenFieldMBS.mouseDragged(e as NSEventMBS, x as Double, y as Double) as boolean
- CustomNSTokenFieldMBS.swipeWithEvent(e as NSEventMBS) as boolean
- CustomNSViewMBS.endGestureWithEvent(e as NSEventMBS) as boolean
- NSTableControlMBS.LeftMouseDown(e as NSEventMBS) as boolean
- NSTableControlMBS.LeftMouseDragged(e as NSEventMBS) as boolean
- NSViewControlMBS.beginGestureWithEvent(e as NSEventMBS) as boolean
Some examples using this class:
- /MacCocoa/Background view over titlebar
- /MacCocoa/Mouse Click & Keyboard Events
- /MacCocoa/Text in titlebar
- /MacControls/Canvas Gestures
- /MacControls/Custom NSView Drag
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacFrameworks/CustomNSTextFieldMBS test
- /MacFrameworks/QuickLook/QuickLook Panel
Blog Entries
- MBS Xojo Plugins, version 18.2pr1
- MBS Xojo / Real Studio Plugins, version 15.1pr5
- MBS Real Studio Plugins, version 13.1pr16
- MBS Real Studio Plugins, version 11.3pr8
- Gestures on Mac OS X
- MBS REALbasic Plugins, version 10.6pr4
The items on this page are in the following plugins: MBS MacBase Plugin.
NSErrorMBS - NSEventMonitorMBS

Links
MBS Xojo blog