Enumeration Case

NSEvent.EventType.smartMagnify

The user performed a smart-zoom gesture.

Declaration

case smartMagnify = 32

Discussion

NSEvent.EventType.smartMagnify represents the smart zoom gesture (that is, a two-finger double tap on trackpads), along with a corresponding NSResponder method. In response to this event, you should magnify the content appropriately for your app. For example, you might zoom in on a specific paragraph or image.

See Also

Event Types

case leftMouseDown

The user pressed the left mouse button.

case leftMouseUp

The user released the left mouse button.

case rightMouseDown

The user pressed the right mouse button.

case rightMouseUp

The user released the right mouse button.

case mouseMoved

The user moved the mouse in a way that caused the cursor to move onscreen.

case leftMouseDragged

The user moved the mouse while holding down the left mouse button.

case rightMouseDragged

The user moved the mouse while holding down the right mouse button.

case mouseEntered

The cursor entered a well-defined area, such as a view.

case mouseExited

The cursor exited a well-defined area, such as a view.

case keyDown

The user pressed a key on the keyboard.

case keyUp

The user released a key on the keyboard.

case flagsChanged

The event flags changed.

case appKitDefined

An AppKit-related event occurred.

case systemDefined

A system-related event occurred.

case applicationDefined

An app-defined event occurred.

case periodic

An event that provides execution time to periodic tasks.

case cursorUpdate

An event that updates the cursor.

case scrollWheel

The scroll wheel position changed.

case tabletPoint

The user touched a point on a tablet.

case tabletProximity

A pointing device is near, but not touching, the associated tablet.

case otherMouseDown

The user pressed a tertiary mouse button.

case otherMouseUp

The user released a tertiary mouse button.

case otherMouseDragged

The user moved the mouse while holding down a tertiary mouse button.

case gesture

The user performed a nonspecific type of gesture.

case magnify

The user performed a pinch-open or pinch-close gesture.

case swipe

The user performed a swipe gesture.

case rotate

The user performed a rotate gesture.

case beginGesture

An event marking the beginning of a gesture.

case endGesture

An event that marks the end of a gesture.

case pressure

An event that reports a change in pressure on a pressure-sensitive device.

case directTouch

The user touched a portion of the touch bar.

case quickLook

An event that initiates a Quick Look request.

case changeMode

The user changed the mode of a connected device.