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 |
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
- 4 methods
- method allTouches as NSTouchMBS() New in 23.5
- method Constructor Private
- method touchesForView(view as NSViewMBS) as NSTouchMBS() New in 23.5
- method touchesForWindow(win as NSWindowMBS) as NSTouchMBS() New in 23.5
- 12 shared methods
- shared method doubleClickInterval as Double
- shared method eventWithCGEvent(CGEventRef as Integer) as NSEventMBS
- shared method isMouseCoalescingEnabled as boolean
- shared method keyEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, characters as String, charactersIgnoringModifiers as String, isARepeat as boolean, keyCode as Integer) as NSErrorMBS
- shared method keyRepeatDelay as Double
- shared method keyRepeatInterval as Double
- shared method modifierFlagsGlobal as UInt32
- shared method mouseEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, eventNumber as Integer, clickCount as Integer, pressure as Single) as NSErrorMBS
- shared method mouseLocation as NSPointMBS
- shared method otherEvent(Type as Integer, LocationX as Double, LocationY as Double, modifierFlags as Integer, timeStamp as double, windowNumber as Integer, SubType as Integer, Data1 as Integer, Data2 as Integer) as NSErrorMBS
- 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.nextEventMatchingMask(mask as Integer, untilDate as date, mode as String, dequeueFlag as boolean) as NSEventMBS
- NSCursorMBS.mouseEntered(e as NSEventMBS)
- NSMenuMBS.popUpContextMenu(menu as NSMenuMBS, theEvent as NSEventMBS, view as NSViewMBS, font as NSFontMBS = nil)
- NSResponderMBS.keyUp(e as NSEventMBS)
- NSResponderMBS.mouseDown(e as NSEventMBS)
- NSResponderMBS.mouseEntered(e as NSEventMBS)
- NSResponderMBS.otherMouseUp(e as NSEventMBS)
- NSScrollerMBS.trackKnob(theEvent as NSEventMBS)
- NSViewMBS.beginDraggingSessionWithItems(items() as Variant, e as NSEventMBS, source as NSViewMBS) as Variant
- NSWindowMBS.sendEvent(e as NSEventMBS)
Some properties using for this class:
- NSApplicationMBS.currentEvent as NSEventMBS
- NSWindowMBS.currentEvent as NSEventMBS
Some events using this class:
- CanvasGesturesMBS.beginGestureWithEvent(can as Variant, e as NSEventMBS) as boolean
- CanvasGesturesMBS.rotateWithEvent(can as Variant, e as NSEventMBS) as boolean
- CustomNSScrollerMBS.magnifyWithEvent(e as NSEventMBS) as boolean
- CustomNSSearchFieldMBS.otherMouseDragged(e as NSEventMBS, x as Double, y as Double) as boolean
- CustomNSTextFieldMBS.beginGestureWithEvent(e as NSEventMBS) as boolean
- CustomPDFViewMBS.mouseUp(e as NSEventMBS, x as Double, y as Double) as boolean
- DesktopNSOutlineControlMBS.RightMouseDragged(e as NSEventMBS) as Boolean
- DesktopNSTableControlMBS.RightMouseDragged(e as NSEventMBS) as boolean
- DesktopNSTableControlMBS.RightMouseUp(e as NSEventMBS) as boolean
- NSCollectionViewControlMBS.draggingImageForItems(indexPaths() as NSIndexPathMBS, NSEvent as NSEventMBS, byref dragImageOffset as NSPointMBS) as NSImageMBS
Some examples using this class:
- /Mac64bit/WebKit2/DesktopWebView
- /Mac64bit/WebKit2/WebView
- /MacBase/Custom NSWindows/NSWindow like AppStore/AppStore NSWindow
- /MacCocoa/Mouse Click & Keyboard Events
- /MacCocoa/NSStatusItem/StatusItem with NSView
- /MacCocoa/Text in titlebar
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Search Field/CustomSearchField with menu
- /MacFrameworks/CustomNSTextFieldMBS test
- /MacFrameworks/QuickLook/QuickLook Panel
Blog Entries
- MBS Xojo Plugins, version 23.5pr7
- News from the MBS Xojo Plugins Version 22.3
- MBS Xojo Plugins, version 22.3pr2
- 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
Release notes
- Version 23.5
- Updated NSEventMBS class to work on iOS with UIEvent internally.
- Version 22.3
- Added shared methods for NSEventMBS class to create events.
- Version 18.2
- Added NSEventMBS.eventWithCGEvent function and NSEventMBS.CGEventRef property.
The items on this page are in the following plugins: MBS MacBase Plugin.
NSErrorMBS - NSEventMonitorMBS
