This class is a key component of the subsystem used to receive and
process
keystrokes, and
direct the associated characters to the active text view to be added
to the displayed text. The other two key classes of
Cocoa's text input system are
NSInputManager and NSTextView.
This class implements the interfaces declared in the
NSInputServiceProvider and
NSInputServerMouseTracker protocols. These two
protocols declare the bulk of the functionality of
NSInputServer. See the descriptions for these two
protocols in Chapter 3 for more information.
@interface NSInputServer : NSObject <NSInputServerMouseTracker, NSInputServiceProvider>
|
// Instance Methods |
- (id) initWithDelegate:(id)aDelegate name:(NSString *)name;
|
// Methods Implementing NSInputServerMouseTracker |
- (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;
|
// Methods Implementing NSInputServiceProvider |
- (void)insertText:(id)aString client:(id)sender;
|
- (void)doCommandBySelector:(SEL)aSelector client:(id)sender;
|
- (void)markedTextAbandoned:(id)sender;
|
- (void)markedTextSelectionChanged:(NSRange)newSel client:(id)sender;
|
- (void)terminate:(id)sender;
|
- (BOOL)canBeDisabled;
|
- (BOOL)wantsToInterpretAllKeystrokes;
|
- (BOOL)wantsToHandleMouseEvents;
|
- (BOOL)wantsToDelayTextChangeNotifications;
|
- (void)inputClientBecomeActive:(id)sender;
|
- (void)inputClientResignActive:(id)sender;
|
- (void)inputClientEnabled:(id)sender;
|
- (void)inputClientDisabled:(id)sender;
|
- (void)activeConversationWillChange:(id)sender fromOldConversation:(long)oldConversation;
|
- (void)activeConversationChanged:(id)sender toNewConversation:(long)newConversation;
|