pub unsafe static GCMouseDidBecomeCurrentNotification: &'static NSString
Available on crate feature
GCMouse
only.Expand description
Use these constants with NSNotificationCenter to listen to a controller becoming the most recently used mouse. This is a good time to swap out UI to match the new current mouse, and unregister any handlers with the old current controller.
The ‘object’ property of the notification will contain the GCMouse that became the current one. For example:
- (void)mouseDidBecomeCurrent:(NSNotification *)note {
GCMouse *mouse = note.object;
… }
See: NSNotificationCenter
See: GCMouse.mice
See: GCMouse.current
See also Apple’s documentation