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

# drawBezel(withFrame:in:)

Draws the border of the button using the current bezel style.

```
func drawBezel(withFrame frame: NSRect, in controlView: NSView)
```

## Parameters

`frame`

The bounding rectangle of the button.

`controlView`

The control being drawn.

## Discussion

This method is called automatically when the button is redrawn; you should not call it directly.

## See Also

[`bezelStyle`](/documentation/AppKit/NSButtonCell/bezelStyle)

The appearance of the button’s border, if it has one.



---

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)