O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSInputServerMouseTracker — Mac OS X 10.0

Synopsis

This protocol declares an interface for mouse event handling that is tailored for use by text views. The methods of this protocol provide information about the character position of an event, in addition to the coordinates of the mouse location in the view.

@protocol NSInputServerMouseTracker
                                  // Instance Methods
   - (BOOL)mouseDownOnCharacterIndex:(unsigned)theIndex 
                                 atCoordinate:(NSPoint)thePoint
                                 withModifier:(unsigned int)theFlags 
                                 client:(id)sender;
   - (BOOL)mouseDraggedOnCharacterIndex:(unsigned)theIndex  
                                 atCoordinate:(NSPoint)thePoint
                                 withModifier:(unsigned int)theFlags 
                                 client:(id)sender;
   - (void)mouseUpOnCharacterIndex:(unsigned)theIndex 
                                 atCoordinate:(NSPoint)thePoint
                                 withModifier:(unsigned int)theFlags 
                                 client:(id)sender;
@end

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required