<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/allowedInputSourceLocales",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(py)allowedInputSourceLocales"
  },
  "title" : "allowedInputSourceLocales"
}
-->

# allowedInputSourceLocales

An array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus.

```
var allowedInputSourceLocales: [String]? { get set }
```

## Discussion

You can use the meta-locale identifier, [`NSAllRomanInputSourcesLocaleIdentifier`](/documentation/AppKit/NSAllRomanInputSourcesLocaleIdentifier), to specify input sources that are limited for Roman script editing.

---

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)