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.


NSInputServerMouseTracker Protocol Reference (Not Recommended)

Adopted by
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac OS X v10.0 and later.
Companion guide
Declared in
NSInputServer.h

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.

Overview

An NSInputServiceProvider object (an "NSInputServer" subclass object or a delegate of an NSInputServer object) may need to implement this protocol. See the NSInputServiceProvider protocol description.

The methods in this protocol differ from typical mouse events in that they have an additional argument which is the index of the character within the text view’s text storage. When an text view object forwards a mouse event to the input manager (with handleMouseEvent:), the input manager calls the text view’s characterIndexForPoint: method to get the index, which it then passes on to the appropriate method in this protocol.

Tasks

Handling Mouse Events



Last updated: 2008-10-20

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