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

# accessibilityArrayAttributeValues(_:index:maxCount:)

Returns a subarray of values of an accessibility array attribute.

```
func accessibilityArrayAttributeValues(_ attribute: NSAccessibility.Attribute, index: Int, maxCount: Int) -> [Any]
```

## Parameters

`attribute`

The accessibility array attribute.

`index`

The starting index.

`maxCount`

The maximum desired number of items requested.

## Return Value

An array of values within the specified index and count.

## Discussion

Note that this method does not take a range. The maximum count is the maximum desired number of items requested by an accessibility client. This number may be beyond the bounds of your array.

---

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)