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

# candidateSelectionChanged(_:)

Informs an input controller that the current candidate selection in the candidate window has changed.

```
func candidateSelectionChanged(_ candidateString: NSAttributedString!)
```

## Parameters

`candidateString`

The changed candidate string.

## Discussion

Note this method is called to indicate user activity in the candidate window. The candidate object might not be the user’s final selection.

---

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)