DekGenius.com
[ Team LiB ] Previous Section Next Section

NSInputManager Mac OS X 10.0

This class is a key component of Cocoa's text input system, which also consists of the classes NSInputServer and NSTextView. This class sits between NSInputServer and NSTextView. Applications don't need to interact with this class directly, unless they are implementing a custom text input and management system.

figs/cocn_1544.gif

@interface NSInputManager : NSObject <NSTextInput>
 // Class Methods
   + (NSInputManager *)currentInputManager;
   + (void)cycleToNextInputLanguage:(id)sender;
   + (void)cycleToNextInputServerInLanguage:(id)sender;
 // Instance Methods
   - (BOOL)handleMouseEvent:(NSEvent*)theMouseEvent;
   - (NSImage *)image;
   - (NSInputManager *)initWithName:(NSString *)inputServerName host:(NSString *)hostName;
   - (NSString*)language;
   - (NSString *)localizedInputManagerName;
   - (void)markedTextAbandoned:(id)cli;
   - (void)markedTextSelectionChanged:(NSRange)newSel client:(id)cli;
   - (NSInputServer*)server;
   - (BOOL)wantsToDelayTextChangeNotifications;
   - (BOOL)wantsToHandleMouseEvents;
   - (BOOL)wantsToInterpretAllKeystrokes;
 // Methods Implementing NSTextInput
   - (void)insertText:(id)aString;
   - (void)doCommandBySelector:(SEL)aSelector;
   - (void)setMarkedText:(id)aString selectedRange:(NSRange)selRange;
   - (void)unmarkText;
   - (BOOL)hasMarkedText;
   - (long)conversationIdentifier;
   - (NSAttributedString *)attributedSubstringFromRange:(NSRange)theRange;
   - (NSRange)markedRange;
   - (NSRange)selectedRange;
   - (NSRect)firstRectForCharacterRange:(NSRange)theRange;
   - (unsigned int)characterIndexForPoint:(NSPoint)thePoint;
   - (NSArray*)validAttributesForMarkedText;

    [ Team LiB ] Previous Section Next Section