<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/candidates(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)candidates:"
  },
  "title" : "candidates(_:)"
}
-->

# candidates(_:)

Returns an array of candidates.

```
func candidates(_ sender: Any!) -> [Any]!
```

## Parameters

`sender`

The client object requesting the candidates.

## Return Value

An array of candidates. The returned array should be an autoreleased object.

## Discussion

An input method should look up its currently composed string and return a list of candidate strings that the composed string might map to.

---

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)