Inherits from | |
Conforms to | |
Framework | System/Library/Frameworks/InputMethodKit.framework |
Availability | Available in Mac OS X v10.5 and later. |
Declared in | IMKServer.h |
Related sample code |
The IMKServer
class manages client connections to your input method. When you write the main function for your input method, you create an IMKServer
object. You should never need to override this class.
Returns an NSBundle
object for the input method.
- (NSBundle*)bundle
An NSBundle
object that is either created from the bundle identifier contained in the server object, or from the main bundle. The returned object is an autoreleased object.
IMKServer.h
Creates and returns a server object from property list information contained in the provided bundle.
- (id)initWithName:(NSString*)name bundleIdentifier:(NSString*)bundleIdentifier
The name to initialize the server object with.
The bundle identifier.
An initialized server object.
This method examines the Info.plist
file for the entries shown in Table 1. The class names are loaded, but no classes are instantiated. Additionally, an NSConnection
object is allocated and registered using the input method connection name supplied in the Info.plist
file.
Key | Value |
---|---|
| The associated value is |
| A string that specifies an input method connection name that names the connection through which your input method services are published. The Input Method Kit uses this name to create an |
| An input controller class. |
| An icon file name. The icon is used to display your input method in the International pane of System Preferences. |
| An array of one or more ISO language codes that specify the character repertoire of your input method. The codes help categorize your input method to the user. |
IMKServer.h
Creates and returns a server object initialized with the provided parameters.
- (id)initWithName:(NSString*)name controllerClass:(Class)controllerClassID delegateClass:(Class)delegateClassID
The name to initialize the server object with.
The id for the input controller class.
The id for the delegate class.
An initialized server object.
IMKServer.h
The input method mode dictionary key.
extern const *NSString IMKModeDictionary;
IMKModeDictionary
The key used to obtain an input method mode dictionary from the input method bundle.
Available in Mac OS X v10.5 and later.
Declared in IMKServer.h
.
For details on the contents of the input mode dictionary, see Technical Note TN2128 Frequently Asked Text Services Manager (TSM) Questions located in Technical Notes > Carbon > Events & Other Input.
IMKServer.h
The input method controller class key.
extern const *NSString IMKControllerClass;
IMKControllerClass
The key used to find an input method input controller class name from the input method bundle.
Available in Mac OS X v10.5 and later.
Declared in IMKServer.h
.
IMKServer.h
The input method delegate class key.
extern const *NSString IMKDelegateClass;
IMKDelegateClass
The key used to find an input method delegate class name from the input method bundle.
Available in Mac OS X v10.5 and later.
Declared in IMKServer.h
.
IMKServer.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-06-06)