---
title: allowsUndo
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscell/allowsundo
---

# allowsUndo

A Boolean value indicating whether the cell assumes responsibility for undo operations.

## Declaration

```swift
var allowsUndo: Bool { get set }
```

## Discussion

Discussion The value of this property is true if the cell handles undo operations itself or false if the app’s custom undo manager must handle undo behavior. Cell subclasses set the value of this property to indicate their preference for handling undo operations. For example, the NSTextFieldCell class uses sets this property to indicate it handles undo operations for edited text, and other controls set a value that is appropriate for their implementation. Do not change the value of this property otherwise.

## See Also

### Managing Cell Attributes

- [setCellAttribute(_:to:)](appkit/nscell/setcellattribute(_:to:).md)
- [cellAttribute(_:)](appkit/nscell/cellattribute(_:).md)
- [type](appkit/nscell/type.md)
- [isEnabled](appkit/nscell/isenabled.md)
