<!--
{
  "availability" : [
    "macOS: 10.8.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextAlternatives/selectedAlternativeStringNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSTextAlternativesSelectedAlternativeStringNotification"
  },
  "title" : "selectedAlternativeStringNotification"
}
-->

# selectedAlternativeStringNotification

Posted when the user selects an alternate string.

```
class let selectedAlternativeStringNotification: NSNotification.Name
```

## Discussion

Arbitrary objects can listen for for this notification to get user selections of alternative strings. The `userInfo` dictionary contains the following information:

|Key                     |Value                           |
|------------------------|--------------------------------|
|`@"NSAlternativeString"`|The selected alternative string.|

To observe this notification using Swift concurrency, use [`NSTextAlternatives.SelectedAlternativeStringMessage`](/documentation/AppKit/NSTextAlternatives/SelectedAlternativeStringMessage).

---

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)