<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "InputMethodKit",
  "identifier" : "/documentation/InputMethodKit/IMKInputController/init(server:delegate:client:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "InputMethodKit"
    ],
    "preciseIdentifier" : "c:objc(cs)IMKInputController(im)initWithServer:delegate:client:"
  },
  "title" : "init(server:delegate:client:)"
}
-->

# init(server:delegate:client:)

Initializes the input control by setting the delegate.

```
init!(server: IMKServer!, delegate: Any!, client inputClient: Any!)
```

## Parameters

`server`

The server object for the controller.

`delegate`

The delegate object.

`inputClient`

The client object that will send messages to the controller using the server object. The client object must confirm to the `IMKTextInput` protocol.

## Return Value

The initialized input controller object.

## Discussion

Methods in the [`IMKStateSetting`](/documentation/InputMethodKit/IMKStateSetting) and [`IMKMouseHandling`](/documentation/InputMethodKit/IMKMouseHandling) protocols that are implemented by the delegate object always include a client parameter. Methods in the `IMKInputController` class do not need to take a client  because the `initWithServer:delegate:client:` method stores the client object you supply as an ivar when it initializes the `IMKInputController` object.

---

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)