---
title: needsDisplay
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsmenuitemcell/needsdisplay
---

# needsDisplay

A Boolean value indicating whether the menu item needs to be displayed.

## Declaration

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

## Discussion

Discussion Set this property to true when you want the menu item to be drawn.

## See Also

### Drawing the Menu Item

- [drawBorderAndBackground(withFrame:in:)](appkit/nsmenuitemcell/drawborderandbackground(withframe:in:).md)
- [drawImage(withFrame:in:)](appkit/nsmenuitemcell/drawimage(withframe:in:).md)
- [drawKeyEquivalent(withFrame:in:)](appkit/nsmenuitemcell/drawkeyequivalent(withframe:in:).md)
- [drawSeparatorItem(withFrame:in:)](appkit/nsmenuitemcell/drawseparatoritem(withframe:in:).md)
- [drawStateImage(withFrame:in:)](appkit/nsmenuitemcell/drawstateimage(withframe:in:).md)
- [drawTitle(withFrame:in:)](appkit/nsmenuitemcell/drawtitle(withframe:in:).md)
