Legacy Mac OS X Reference Library Apple Developer Connection

Legacy Documentclose button

Important: NSInputServerMouseTracker protocol is deprecated in Mac OS X v10.6 and later. To create input methods, use the Input Method Kit, described in Input Method Kit Framework Reference. For information about text input in Cocoa, see NSTextInputContext Class Reference.


Deprecated NSInputServerMouseTracker Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.6

mouseDownOnCharacterIndex:atCoordinate:withModifier:client:

A mouse down event happened at given index within the sender text view’s text storage, at the given point, with modifier keys identified in flags. (required) (Deprecated in Mac OS X v10.6.)

- (BOOL)mouseDownOnCharacterIndex:(NSUInteger)index atCoordinate:(NSPoint)point withModifier:(NSUInteger)flags client:(id)sender

Discussion

Returns YES if it consumes the event; in that case, a mouse dragged or a mouse up message will follow. If NO is returned, then neither of the other two events will follow.

Availability
See Also
Declared In
NSInputServer.h

mouseDraggedOnCharacterIndex:atCoordinate:withModifier:client:

A mouse dragged event happened at given index within the sender text view’s text storage, at the given point, with modifier keys identified in flags. (required) (Deprecated in Mac OS X v10.6.)

- (BOOL)mouseDraggedOnCharacterIndex:(NSUInteger)index atCoordinate:(NSPoint)point withModifier:(NSUInteger)flags client:(id)sender

Discussion

Returns YES if it consumes the event; in that case, either another mouse dragged or a mouse up message will follow. If NO is returned, then neither message will follow.

Availability
See Also
Declared In
NSInputServer.h

mouseUpOnCharacterIndex:atCoordinate:withModifier:client:

A mouse up event happened at given index within the sender text view’s text storage, at the given point, with modifier keys identified in flags. (required) (Deprecated in Mac OS X v10.6.)

- (void)mouseUpOnCharacterIndex:(NSUInteger)index atCoordinate:(NSPoint)point withModifier:(NSUInteger)flags client:(id)sender

Discussion

This event is always consumed.

Availability
See Also
Declared In
NSInputServer.h


Last updated: 2008-10-20

Did this document help you? Yes It's good, but... Not helpful...