PATH  Documentation > Mac OS X > Application Kit Reference: Objective-C

Table of Contents

NSInputManager


Inherits from:
NSObject
Conforms to:
NSTextInput
NSObject (NSObject)
Declared in:
AppKit/NSInputManager.h




Class Description


Most programs never need to interact with an input manager. The system text object, and all user interface objects that accept textual input, already deal with this typically through NSResponder.




Adopted Protocols


Forthcoming.


Method Types


TBD Class Method Type heading
+ currentInputManager
+ cycleToNextInputLanguage:
+ cycleToNextInputServerInLanguage:
TBD Instance Method Type heading
- handleMouseEvent:
- image
- initWithName:host:
- language
- localizedInputManagerName
- markedTextSelectionChanged:client:
- markedTextAbandoned:
- server
- wantsToDelayTextChangeNotifications
- wantsToHandleMouseEvents
- wantsToInterpretAllKeystrokes


Class Methods



currentInputManager

+ (NSInputManager *)currentInputManager

The "current input manager" is the one that is receiving input events at the time this method is called. It may change out from under you, so don't cache the return value.

cycleToNextInputLanguage:

+ (void)cycleToNextInputLanguage:(id)sender

Description forthcoming.

cycleToNextInputServerInLanguage:

+ (void)cycleToNextInputServerInLanguage:(id)sender

Description forthcoming.


Instance Methods



handleMouseEvent:

- (BOOL)handleMouseEvent:(NSEvent*)theMouseEvent

Description forthcoming.

image

- (NSImage *)image

Description forthcoming.

initWithName:host:

- (NSInputManager *)initWithName:(NSString *)inputServerName host:(NSString *)hostName

Sent by NSApp for each input manager that will be activated. This is the designated initializer for NSInputManager. inputServerName is typically the name of a port for the input manager to connect with for processing. If there is no back-end present, then processToExec is the file that should be executed to start up the connection. There is at most one input manager per active keyboard (and there may be none associated with most keyboards).



language

- (NSString*)language

Description forthcoming.

localizedInputManagerName

- (NSString *)localizedInputManagerName

Description forthcoming.

markedTextSelectionChanged:client:

- (void)markedTextSelectionChanged:(NSRange)newSel client:(id)client

Description forthcoming.

markedTextAbandoned:

- (void)markedTextAbandoned:(id)client

Description forthcoming.

server

- (NSInputServer*)server

Description forthcoming.

wantsToDelayTextChangeNotifications

- (BOOL)wantsToDelayTextChangeNotifications

Returns YES when the input method (language) prefers to delay text change notification until the input is actually committed.

wantsToHandleMouseEvents

- (BOOL)wantsToHandleMouseEvents

Description forthcoming.

wantsToInterpretAllKeystrokes

- (BOOL)wantsToInterpretAllKeystrokes

Description forthcoming.


Table of Contents