<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFUserNotificationGetResponseValue(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFUserNotificationGetResponseValue"
  },
  "title" : "CFUserNotificationGetResponseValue(_:_:_:)"
}
-->

# CFUserNotificationGetResponseValue(_:_:_:)

Extracts the values of the text fields from a dismissed notification dialog.

```
func CFUserNotificationGetResponseValue(_ userNotification: CFUserNotification!, _ key: CFString!, _ idx: CFIndex) -> CFString!
```

## Parameters

`userNotification`

The user notification to use.

`key`

The dictionary key identifying the text fields to use. Currently, only [`kCFUserNotificationTextFieldValuesKey`](/documentation/CoreFoundation/kCFUserNotificationTextFieldValuesKey) is supported.

`idx`

The index of the text field value to return. The index corresponds to the order in which text fields are listed in the [`kCFUserNotificationTextFieldTitlesKey`](/documentation/CoreFoundation/kCFUserNotificationTextFieldTitlesKey) array in the user notification’s description dictionary.

## Return Value

The value of the text field identified by `key` and `idx`. Ownership follows the [The Get Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-SW1).

## Discussion

---

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)