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

# accessibilityAttributeValue(_:forParameter:)

Returns the value of the receiver’s parameterized attribute corresponding to the specified attribute name and parameter.

```
func accessibilityAttributeValue(_ attribute: NSAccessibility.ParameterizedAttribute, forParameter parameter: Any?) -> Any?
```

## Parameters

`attribute`

The name of the attribute. See <doc://com.apple.documentation/documentation/AppKit/nsaccessibility> constants for lists of attribute names.

`parameter`

The parameter.

## Discussion

If you implement this method, also implement [`accessibilityParameterizedAttributeNames()`](/documentation/ObjectiveC/NSObject-swift.class/accessibilityParameterizedAttributeNames()).

---

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)