<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAccessibility-c.protocol/accessibilityParent",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSAccessibility(py)accessibilityParent"
  },
  "title" : "accessibilityParent"
}
-->

# accessibilityParent

The accessibility element’s parent in the accessibility hierarchy.

```
@property (weak, nullable) id accessibilityParent;
```

## Discussion

This property must contain a reference to another element in the accessibility hierarchy. If you create an [`NSView`](/documentation/AppKit/NSView) subclass, you don’t typically need to set this value. The system automatically sets the parent to the nearest ancestor in the view hierarchy that is also in the accessibility hierarchy. If you use an [`NSAccessibilityElement`](/documentation/AppKit/NSAccessibilityElement-swift.class) subclass to represent an interface element that is not backed by a view, you can either set the parent property or you can call the [`element(withRole:frame:label:parent:)`](/documentation/AppKit/NSAccessibilityElement-swift.class/element(withRole:frame:label:parent:)) convenience method, which sets it automatically.

## See Also

[`static func unignoredAncestor(of: Any) -> Any?`](/documentation/AppKit/NSAccessibility-swift.struct/unignoredAncestor(of:))

Returns an unignored accessibility object, ascending the hierarchy, if necessary.

[`class func element(withRole: NSAccessibility.Role, frame: NSRect, label: String?, parent: Any?) -> Any`](/documentation/AppKit/NSAccessibilityElement-swift.class/element(withRole:frame:label:parent:))

Instantiates and configures a new accessibility element.

[`@property (getter=isAccessibilityElement) BOOL accessibilityElement;`](/documentation/AppKit/NSAccessibility-c.protocol/accessibilityElement)

A Boolean value that determines whether the accessibility element participates in the accessibility hierarchy.



---

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)