<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "InputMethodKit",
  "identifier" : "/documentation/InputMethodKit/IMKServer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "InputMethodKit"
    ],
    "preciseIdentifier" : "c:objc(cs)IMKServer"
  },
  "title" : "IMKServer"
}
-->

# IMKServer

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.

```
class IMKServer
```

## Topics

### Initializing a Server Object

[`-  initWithName:bundleIdentifier:`](/documentation/InputMethodKit/IMKServer/init(name:bundleIdentifier:))

Creates and returns a server object from property list information contained in the provided bundle.

[`-  initWithName:controllerClass:delegateClass:`](/documentation/InputMethodKit/IMKServer/init(name:controllerClass:delegateClass:))

Creates and returns a server object initialized with the provided parameters.

### Getting a Bundle for the Input Method

[`-  bundle`](/documentation/InputMethodKit/IMKServer/bundle())

Returns an `NSBundle` object for the input method.

### Constants

  <doc:imkmodedictionary>

  <doc:imkcontrollerclass>

  <doc:imkdelegateclass>

### Instance Methods

[`-  lastKeyEventWasDeadKey`](/documentation/InputMethodKit/IMKServer/lastKeyEventWasDeadKey())

[`-  paletteWillTerminate`](/documentation/InputMethodKit/IMKServer/paletteWillTerminate())

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)