---
title: itemDidCollapseNotification
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsoutlineview/itemdidcollapsenotification
---

# itemDidCollapseNotification

Posted whenever an item is collapsed in an NSOutlineView object.

## Declaration

```swift
class let itemDidCollapseNotification: NSNotification.Name
```

## Discussion

Discussion The notification object is the NSOutlineView object in which an item was collapsed. A collapsed item’s children lose their status as being selected. The userInfo dictionary contains the following information:  |   |  To observe this notification using Swift concurrency, use NSOutlineView.ItemDidCollapseMessage.

## See Also

### Notifications

- [columnDidMoveNotification](appkit/nsoutlineview/columndidmovenotification.md)
- [columnDidResizeNotification](appkit/nsoutlineview/columndidresizenotification.md)
- [itemDidExpandNotification](appkit/nsoutlineview/itemdidexpandnotification.md)
- [itemWillCollapseNotification](appkit/nsoutlineview/itemwillcollapsenotification.md)
- [itemWillExpandNotification](appkit/nsoutlineview/itemwillexpandnotification.md)
- [selectionDidChangeNotification](appkit/nsoutlineview/selectiondidchangenotification.md)
- [selectionIsChangingNotification](appkit/nsoutlineview/selectionischangingnotification.md)
