NSEvent
An API class in macOS used to represent and dispatch user input events such as mouse, keyboard and touch events. It is a core component of the AppKit event-handling system.
Timeline (last 90 days)
Existing Mac apps are built on AppKit, whose event model is designed around NSEvent mouse events.
macOS global shortcut monitoring relies on Core Graphics event listening API (CGEventTap) or the higher-level NSEvent global monitor, which can capture keyboard events when the application is not in the foreground
On macOS, cursor position can be obtained via NSEvent's mouseLocation, idle time queried via IOKit's HIDIdleTime, and battery status read via the IOPowerSources API—all of which are local system calls.
All Facts (3)
Existing Mac apps are built on AppKit, whose event model is designed around NSEvent mouse events.
60%UnverifiedmacOS global shortcut monitoring relies on Core Graphics event listening API (CGEventTap) or the higher-level NSEvent global monitor, which can capture keyboard events when the application is not in the foreground
50%UnverifiedOn macOS, cursor position can be obtained via NSEvent's mouseLocation, idle time queried via IOKit's HIDIdleTime, and battery status read via the IOPowerSources API—all of which are local system calls.
50%