<!--
{
  "availability" : [
    "macOS: 10.9.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserNotification/response",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUserNotification(py)response"
  },
  "title" : "response"
}
-->

# response

The response with which the user responded to a notification.

```
@NSCopying var response: NSAttributedString? { get }
```

## Discussion

When the user responds to a notification, the [`NSUserNotificationCenterDelegate`](/documentation/Foundation/NSUserNotificationCenterDelegate) method [`userNotificationCenter(_:didActivate:)`](/documentation/Foundation/NSUserNotificationCenterDelegate/userNotificationCenter(_:didActivate:)) is called with the notification, the [`activationType`](/documentation/Foundation/NSUserNotification/activationType-swift.property) property set to [`NSUserNotification.ActivationType.replied`](/documentation/Foundation/NSUserNotification/ActivationType-swift.enum/replied), and this property is set with the user’s response.

---

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)