<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStackView/delegate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSStackView(py)delegate"
  },
  "title" : "delegate"
}
-->

# delegate

The delegate object for the stack view.

```
weak var delegate: (any NSStackViewDelegate)? { get set }
```

## Discussion

The system calls a delegate method when resizing has caused a view to be detached from or reattached to the stack view. For more information, see [`NSStackViewDelegate`](/documentation/AppKit/NSStackViewDelegate).

---

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)