<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAccessibilityTable/accessibilitySelectedCells()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSAccessibilityTable(im)accessibilitySelectedCells"
  },
  "title" : "accessibilitySelectedCells()"
}
-->

# accessibilitySelectedCells()

The currently selected cells for the table.

```
optional func accessibilitySelectedCells() -> [Any]?
```

## Return Value

An array containing the currently selected cells for the table.

## Discussion

This method is the getter for the [`NSAccessibilityProtocol`](/documentation/AppKit/NSAccessibilityProtocol) protocol’s [`accessibilitySelectedCells`](/documentation/AppKit/NSAccessibility-c.protocol/accessibilitySelectedCells) property. Additionally, your class needs to send a [`selectedCellsChanged`](/documentation/AppKit/NSAccessibility-swift.struct/Notification/selectedCellsChanged) notification whenever the table’s selected cells change.

## See Also

[`accessibilitySelectedCells`](/documentation/AppKit/NSAccessibility-c.protocol/accessibilitySelectedCells)

The currently selected cells for the table.



---

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)