<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMenuItemCell/drawSeparatorItem(withFrame:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMenuItemCell(im)drawSeparatorItemWithFrame:inView:"
  },
  "title" : "drawSeparatorItem(withFrame:in:)"
}
-->

# drawSeparatorItem(withFrame:in:)

Draws a menu item separator.

```
func drawSeparatorItem(withFrame cellFrame: NSRect, in controlView: NSView)
```

## Parameters

`cellFrame`

A rectangle defining the receiver’s frame area.

`controlView`

The view object that contains this cell (usually an [`NSControl`](/documentation/AppKit/NSControl) object).

## Discussion

This method uses the `cellFrame` parameter to calculate the rectangle in which to draw the menu item separator. This method uses the `controlView` to determine whether the separator item should be drawn normally or flipped.

You should not need to invoke this method directly. Subclasses may override this method to control the drawing of the separator.

## See Also

[`flipped`](/documentation/AppKit/NSView/isFlipped)

A Boolean value indicating whether the view uses a flipped coordinate system.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)