---
title: "outlineViewSelectionDidChange(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsoutlineviewdelegate/outlineviewselectiondidchange(_:)"
---

# outlineViewSelectionDidChange(_:)

Invoked when the selection did change notification is posted—that is, immediately after the outline view’s selection has changed.

## Declaration

```swift
@MainActor optional func outlineViewSelectionDidChange(_ notification: Notification)
```

## Parameters

- `notification`: The posted notification.

## Discussion

Discussion This method is invoked as a result of posting an selectionDidChangeNotification.

## See Also

### Handling Selection

- [outlineView(_:shouldSelect:)](appkit/nsoutlineviewdelegate/outlineview(_:shouldselect:).md)
- [outlineView(_:shouldSelectItem:)](appkit/nsoutlineviewdelegate/outlineview(_:shouldselectitem:).md)
- [outlineView(_:selectionIndexesForProposedSelection:)](appkit/nsoutlineviewdelegate/outlineview(_:selectionindexesforproposedselection:).md)
- [selectionShouldChange(in:)](appkit/nsoutlineviewdelegate/selectionshouldchange(in:).md)
- [outlineViewSelectionIsChanging(_:)](appkit/nsoutlineviewdelegate/outlineviewselectionischanging(_:).md)
