Adopted by | |
Framework | System/Library/Frameworks/InputMethodKit.framework |
Availability | Available in Mac OS X v10.5 and later. |
Declared in | IMKInputController.h |
The IMKMouseHandling
protocol defines methods that your input method can implement to handle mouse events.
– mouseDownOnCharacterIndex:coordinate:withModifier:continueTracking:client:
– mouseUpOnCharacterIndex:coordinate:withModifier:client:
– mouseMovedOnCharacterIndex:coordinate:withModifier:client:
Handles mouse-down event send to an input method.
-(BOOL)mouseDownOnCharacterIndex:(NSUInteger)index coordinate:(NSPoint)point withModifier:(NSUInteger)flags continueTracking:(BOOL*)keepTracking client:(id)sender
The index within the sender’s text storage where the mouse-down event occurred.
The point at which the mouse-down event occurred.
The modifier keys.
Set this parameter to YES
if you want to receive subsequent mouse-moved and mouse -up events.
The client object.
YES
if handled; otherwise NO
.
Implement this method if your input method handles mouse-down events.
IMKInputController.h
Handles a mouse-moved event sent to an input method.
-(BOOL)mouseMovedOnCharacterIndex:(NSUInteger)index coordinate:(NSPoint)point withModifier:(NSUInteger)flags client:(id)sender
The index within the sender’s text storage where the mouse-moved event occurred.
The point at which the mouse-moved event occurred.
The modifier keys.
The client object.
YES
if handled; otherwise NO
.
Implement this method if your input method handles mouse-moved events.
IMKInputController.h
Handles a mouse-up event sent to an input method.
-(BOOL)mouseUpOnCharacterIndex:(NSUInteger)index coordinate:(NSPoint)point withModifier:(NSUInteger)flags client:(id)sender
The index within the sender’s text storage where the mouse-up event occurred.
The point at which the mouse-up event occurred.
The modifier keys.
The client object.
YES
if handled; otherwise NO
.
Implement this method if your input method handles mouse-up events.
IMKInputController.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-06-05)