May 2003
Intermediate to advanced
566 pages
27h 29m
English
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.
|
|
@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 ... |
Read now
Unlock full access