Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSEventMBS class.

Next items

NSEventMBS.absoluteX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 8.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Reports the absolute x coordinate of a pointing device on its tablet at full tablet resolution.

For the coordinate to be valid, the receiver should represent an event generated by a tablet pointing device (otherwise 0 is returned). This method is valid only for mouse events with a subtype of NSTabletPointEventSubtype and for events of type NSTabletPoint. Use this value if you want to scale from tablet location to screen location yourself; otherwise use the class method mouseLocation or the instance method locationInWindow.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.absoluteY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 8.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Reports the absolute y coordinate of a pointing device on its tablet at full tablet resolution.

For the coordinate to be valid, the receiver should represent an event generated by a tablet pointing device (otherwise 0 is returned). This method is valid only for mouse events with a subtype of NSTabletPointEventSubtype and for events of type NSTabletPoint. Use this value if you want to scale from tablet location to screen location yourself; otherwise use the class method mouseLocation or the instance method locationInWindow.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.absoluteZ as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 8.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Reports the absolute z coordinate of pointing device on its tablet at full tablet resolution.

For the coordinate to be valid, the receiver should represent an event generated by a tablet pointing device (otherwise 0 is returned). The z coordinate does not represent pressure. It registers the depth coordinate returned by some tablet devices with wheels; if the device is something other than these, 0 is returned. This method is valid only for mouse events with a subtype of NSTabletPointEventSubtype and for events of type NSTabletPoint.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.associatedEventsMask as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 15.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The event mask describing the various events that you may also get during this event sequence.

This message is valid for Mouse events. Useful for determining if the input device issuing this mouse event can also simultaneously issue NSEventTypePressure events.
(Read only property)

NSEventMBS.buttonMask as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 8.7 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a bit mask identifying the buttons pressed when the tablet event represented by the receiver was generated.

Use one or more of the button-mask constants described in Constants to determine which buttons of the pointing device are pressed. This method is valid only for mouse events with a subtype of NSTabletPointEventSubtype and for events of type NSTabletPoint.

Available in Mac OS X v10.4 and later.

Constants to use:
NSPenTipMask=1The pen tip is activated.
NSPenLowerSideMask=2The button on the lower side of the device is activated.
NSPenUpperSideMask=4The button on the upper side of the device is activated.
(Read only property)

NSEventMBS.buttonNumber as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the button number for the mouse button that generated an NSOtherMouse... event.

This method is intended for use with the NSOtherMouseDown, NSOtherMouseUp, and NSOtherMouseDragged events, but will return values for NSLeftMouse... and NSRightMouse... events also.
(Read only property)

NSEventMBS.capabilityMask as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a mask whose set bits indicate the capabilities of the tablet device that generated the event represented by the receiver.

These bits are vendor-defined. This method is valid only for mouse events with a subtype of NSTabletProximityEventSubtype and for events of type NSTabletProximity.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.CGEventRef as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 18.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The Core Graphics event object corresponding to this event.

The CGEventRef opaque type returned. If no CGEventRef object corresponding to the NSEvent object can be created, this method returns 0.
(Read only property)

NSEventMBS.characters as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the characters associated with the receiving key-up or key-down event.

These characters are derived from a keyboard mapping that associates various key combinations with Unicode characters. Raises an NSInternalInconsistencyException if sent to any other kind of event object.

This method returns an empty string for dead keys, such as Option-e. However, for a key combination such as Option-Shift-e this method returns the standard accent ("'").
(Read only property)

NSEventMBS.charactersIgnoringModifiers as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the characters generated by the receiving key event as if no modifier key (except for Shift) applies.

Raises an NSInternalInconsistencyException if sent to a nonkey event.

This method returns the non-modifier key character pressed for dead keys, such as Option-e. For example, Option-e (no shift key) returns an "e" for this method, whereas the characters method returns an empty string.

This method is useful for determining "basic" key values in a hardware-independent manner, enabling such features as keyboard equivalents defined in terms of modifier keys plus character keys. For example, to determine if the user typed Alt-S, you don't have to know whether Alt-S generates a German double ess, an integral sign, or a section symbol. You simply examine the string returned by this method along with the event's modifier flags, checking for "s" and NSAlternateKeyMask.
(Read only property)

NSEventMBS.clickCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the number of mouse clicks associated with the receiver, which represents a mouse-down or mouse-up event.

Raises an NSInternalInconsistencyException if sent to a nonmouse event.

Returns 0 for a mouse-up event if a time threshold has passed since the corresponding mouse-down event. This is because if this time threshold passes before the mouse button is released, it is no longer considered a mouse click, but a mouse-down event followed by a mouse-up event.

The return value of this method is meaningless for events other than mouse-down or mouse-up events.
(Read only property)

NSEventMBS.data1 as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns additional data associated with the receiver.

The value returned by this method is dependent on the event type, and is defined by the originator of the event. Raises an NSInternalInconsistencyException if sent to an event not of type NSAppKitDefined, NSSystemDefined, NSApplicationDefined, or NSPeriodic.

NSPeriodic events don't use this attribute.
(Read only property)

NSEventMBS.data2 as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns additional data associated with the receiver.

The value returned by this method is dependent on the event type, and is defined by the originator of the event. Raises an NSInternalInconsistencyException if sent to an event not of type NSAppKitDefined, NSSystemDefined, NSApplicationDefined, or NSPeriodic.

NSPeriodic events don't use this attribute.
(Read only property)

NSEventMBS.deltaX as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the x-coordinate change for a scroll wheel, mouse-move, or mouse-drag event.

(Read only property)

NSEventMBS.deltaY as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the y-coordinate change for a scroll wheel, mouse-move, or mouse-drag event.

The behavior of this method may seem counter-intuitive: as the mouse moves up the screen, the value is negative; and as it moves down the screen, the value is positive. The reason for this behavior is that NSEvent computes this delta value in device space, which is flipped, but both the screen and the window's base coordinate system are not flipped.
(Read only property)

NSEventMBS.deltaZ as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the z-coordinate change for a scroll wheel, mouse-move, or mouse-drag event.

(Read only property)

NSEventMBS.description as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 11.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the description for this object.

(Read only property)

NSEventMBS.deviceID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a special identifier that is used to match tablet-pointer events with the tablet-proximity event represented by the receiver.

All tablet-pointer events generated in the period between the device entering and leaving tablet proximity have the same device ID. This message is valid only for mouse events with subtype NSTabletPointEventSubtype or NSTabletProximityEventSubtype, and for NSTabletPoint and NSTabletProximity events.
Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.eventNumber as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the counter value of the latest mouse or tracking-rectangle event object; every system-generated mouse and tracking-rectangle event increments this counter.

Raises an NSInternalInconsistencyException if sent to any other type of event object.
(Read only property)

NSEventMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The handle to the internal used NSEvent class.

(Read and Write property)

NSEventMBS.hasPreciseScrollingDeltas as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns whether there are precise scrolling deltas available.

Returns true if precise scrolling deltas are available; false otherwise.

This method is valid for NSScrollWheel events. A generic scroll wheel issues rather coarse scroll deltas. Some mice and trackpads provide much more precise delta. This method determines how the values of the scrollingDeltaX and scrollingDeltaY should be interpreted.
Available in OS X v10.7 and later.
(Read only property)

NSEventMBS.isARepeat as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns true if the receiving key event is a repeat caused by the user holding the key down, false if the key event is new.

Raises an NSInternalInconsistencyException if sent to an NSFlagsChanged event or other nonkey event.
(Read only property)

Some examples using this property:

NSEventMBS.isDirectionInvertedFromDevice as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns whether the user has changed the device inversion.

This method valid for NSEventScrollWheel and NSEventTypeSwipe events. The user may choose to change the scrolling behavior such that it feels like they are moving the content instead of the scroll bar.

To accomplish this, deltaX and deltaY and scrollingDeltaX and scrollingDeltaY values are automatically inverted for NSEventScrollWheel events according to the user's preferences.

The direction of fluid swipes matches the direction of scrolling and as such for NSEventTypeSwipe events gestureAmount is inverted. However, for some uses of NSEventScrollWheel and NSEventTypeSwipe events, the behavior should not respect the user preference. This method allows you to determine when the event has been inverted and compensate by multiplying -1 if needed.

Available in OS X v10.7 and later.
(Read only property)

NSEventMBS.isEnteringProximity as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns true to indicate that a pointing device is entering the proximity of its tablet and false when it is leaving it.

This method is valid for mouse events with subtype NSTabletProximityEventSubtype and for NSTabletProximity events.
Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.keyCode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the virtual key code for the keyboard key associated with the receiving key event.

The virtual key code. The returned value is hardware-independent. The value returned is the same as the value returned in the kEventParamKeyCode when using Carbon Events.

Raises an NSInternalInconsistencyException if sent to a non-key event.
(Read only property)

NSEventMBS.locationInWindow as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the receiver's location in the base coordinate system of the associated window.

For nonmouse events the return value of this method is undefined.

With NSMouseMoved and possibly other events, the receiver can have a nil window (that is, window returns nil). In this case, locationInWindow returns the event location in screen coordinates.
(Read only property)

Some examples using this property:

NSEventMBS.magnification as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the change in magnification.

The change in magnification that should be added to the current scaling of an item to achieve the new scale factor.
This message is valid for events of type NSEventTypeMagnify.
Available in Mac OS X v10.6 and later.
(Read only property)

NSEventMBS.modifierFlags as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns an integer bit field indicating the modifier keys in effect for the receiver.

You can examine individual flag settings using the C bitwise AND operator with the predefined key masks. The lower 16 bits of the modifier flags are reserved for device-dependent bits.
(Read only property)

NSEventMBS.pointingDeviceID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the index of the pointing device currently in proximity with the tablet.

This index is significant for multimode (or Dual Tracking) tablets that support multiple concurrent pointing devices; the index is incremented for each pointing device that comes into proximity. Otherwise, zero is always returned. The receiver of this message should be a mouse event object with subtype NSTabletProximityEventSubtype or an event of type NSTabletProximity.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.pointingDeviceSerialNumber as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the vendor-assigned serial number of a pointing device of a certain type.

Devices of different types, such as a puck and a pen, may have the same serial number. The receiver of this message should be a mouse event object with subtype NSTabletProximityEventSubtype or an event of type NSTabletProximity.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.pointingDeviceType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a NSPointingDeviceType constant indicating the kind of pointing device associated with the receiver.

For example, the device could be a pen, eraser, or cursor pointing device. This method is valid for mouse events with subtype NSTabletProximityEventSubtype and for NSTabletProximity events. See "Constants" for descriptions of valid NSPointingDeviceType constants.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.pressure as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a value from 0.0 through 1.0 indicating the pressure applied to the input device (used for appropriate devices).

For devices that aren't pressure-sensitive, the value is either 0.0 or 1.0. Raises an NSInternalInconsistencyException if sent to a nonmouse event.

For tablet pointing devices that are in proximity, the pressure value is 0.0 if they are not actually touching the tablet. As the device is pressed into the tablet, the value is increased.
(Read only property)

NSEventMBS.rotation as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 8.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the rotation in degrees of the tablet pointing device associated with the receiver.

Many devices do not support rotation, in which case the returned value is 0.0. This method is valid only for mouse events with subtype NSTabletPointEventSubtype and for NSTabletPoint events.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.scrollingDeltaX as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the scroll wheel horizontal delta.

This is the preferred method for accessing NSScrollWheel delta values. When hasPreciseScrollingDeltas returns false, your application may which to modify this value.

Available in OS X v10.7 and later.
(Read only property)

NSEventMBS.scrollingDeltaY as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the scroll wheel vertical delta.

This is the preferred method for accessing NSScrollWheel delta values. When hasPreciseScrollingDeltas returns false, multiply the value returned by this method by the line or row height. Otherwise scroll by the returned amount.

Available in OS X v10.7 and later.
(Read only property)

NSEventMBS.stage as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 15.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The stage of pressure events.

This message is valid for NSEventTypePressure events.
Pressure gesture events go through multiple stages.
(Read only property)

NSEventMBS.stageTransition as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 15.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The stage transition for pressure events.

This message is valid for NSEventTypePressure events. Positive stageTransition describes approaching the next stage of the pressure gesture. Negative stageTransition describes approaching release of the current stage.
(Read only property)

NSEventMBS.subtype as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the subtype of the receiving event object.

Raises an NSInternalInconsistencyException if sent to an event not of type NSAppKitDefined, NSSystemDefined, NSApplicationDefined, or NSPeriodic.

NSPeriodic events don't use this attribute.

This method is also valid for mouse events on Mac OS X v10.4 and later. See the predefined mouse and tablet subtypes.
(Read only property)

NSEventMBS.systemTabletID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the index of the tablet device connected to the system.

If multiple tablets are connected to the system, the system-tablet ID is incremented for each subsequent one. If there is only one tablet device, its system-tablet ID is zero. The receiver of this message should be a mouse event object with subtype NSTabletProximityEventSubtype or an event of type NSTabletProximity.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.tabletID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the USB model identifier of the tablet device associated with the receiver.

This method is valid for mouse events with subtype NSTabletProximityEventSubtype and for NSTabletProximity events.
Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.tangentialPressure as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 8.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Reports the tangential pressure on the device that generated the event represented by the receiver.

The value returned can range from -1.0 to 1.0. Tangential pressure is also known as barrel pressure. Only some pointing devices support tangential pressure. This method is valid for mouse events with subtype NSTabletPointEventSubtype and for NSTabletPoint events.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.tilt as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Reports the scaled tilt values of the pointing device that generated the event represented by the receiver.

The value returned can range from -1.0 to 1.0 for both axes. An x-coordinate value that is negative indicates a tilt to the left and a positive value indicates a tilt to the right; a y-coordinate value that is negative indicates a tilt to the top and a positive value indicates a tilt to the bottom. If the device is perfectly perpendicular to the table surface, the values are 0.0 for both axes. This method is valid for mouse events with subtype NSTabletPointEventSubtype and for NSTabletPoint events.

Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.timestamp as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the time the receiver occurred in seconds since system startup.

(Read only property)

NSEventMBS.trackingNumber as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the identifier of a mouse-tracking event.

This method returns either an NSTrackingArea object or a NSTrackingRectTag constant depending on whether the event was generated from an NSTrackingArea object or a call to addTrackingRect:owner:userData:assumeInside:. Valid mouse-tracking methods are of types NSMouseEntered, NSMouseExited, and NSCursorUpdate. This method raises an NSInternalInconsistencyException if sent to any other type of event.

The NSTrackingArea class is new with Mac OS X version 10.5
(Read only property)

NSEventMBS.type as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The type of the receiving event.

The type must be one of the following:

NSLeftMouseDown
NSLeftMouseUp
NSRightMouseDown
NSRightMouseUp
NSOtherMouseDown
NSOtherMouseUp
NSMouseMoved
NSLeftMouseDragged
NSRightMouseDragged
NSOtherMouseDragged
NSMouseEntered
NSMouseExited
NSKeyDown
NSKeyUp
NSFlagsChanged
NSAppKitDefined
NSSystemDefined
NSApplicationDefined
NSPeriodic
NSCursorUpdate
NSScrollWheel
(Read only property)

NSEventMBS.uniqueID as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the unique identifier of the pointing device that generated the event represented by the receiver.

Also known as tool ID, this is a unique number recorded in the chip inside every pointing device. The unique ID makes it possible to assign a specific pointing device to a specific tablet. You can also use it to "sign" documents or to restrict access to document layers to a specific pointing device. This method is valid for mouse events with subtype NSTabletProximityEventSubtype and for NSTabletProximity events.
Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.vendorID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the vendor identifier of the tablet associated with the receiver.

The tablet is typically a USB device. This method is valid only for mouse events with subtype NSTabletProximityEventSubtype and for NSTabletProximity events.
Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.vendorPointingDeviceType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a coded bit field whose set bits indicate the type of pointing device (within a vendor selection) associated with the receiver.

See the vendor documentation for an interpretation of significant bits. This method is valid only for mouse events with subtype NSTabletProximityEventSubtype and for NSTabletProximity events.
Available in Mac OS X v10.4 and later.
(Read only property)

NSEventMBS.window as NSWindowMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacBase Plugin 9.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the window object associated with the receiver.

A periodic event, however, has no window; in this case the return value is undefined.
(Read only property)

Next items

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...