---
title: removeFromSuperviewWithoutNeedingDisplay()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsview/removefromsuperviewwithoutneedingdisplay()
---

# removeFromSuperviewWithoutNeedingDisplay()

Unlinks the view from its superview and its window and removes it from the responder chain, but does not invalidate its cursor rectangles to cause redrawing.

## Declaration

```swift
func removeFromSuperviewWithoutNeedingDisplay()
```

## Discussion

Discussion The view is also released; if you plan to reuse it, be sure to retain it before sending this message and to release it as appropriate when adding it as a subview of another view. Unlike its counterpart, removeFromSuperview(), this method can be safely invoked during display.

## See Also

### Adding and Removing Subviews

- [addSubview(_:)](appkit/nsview/addsubview(_:).md)
- [addSubview(_:positioned:relativeTo:)](appkit/nsview/addsubview(_:positioned:relativeto:).md)
- [removeFromSuperview()](appkit/nsview/removefromsuperview().md)
- [replaceSubview(_:with:)](appkit/nsview/replacesubview(_:with:).md)
- [sortSubviews(_:context:)](appkit/nsview/sortsubviews(_:context:).md)
