---
title: showsBorderOnlyWhileMouseInside
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbuttoncell/showsborderonlywhilemouseinside
---

# showsBorderOnlyWhileMouseInside

A Boolean value that indicates if the button displays its border only when the pointer is over it.

## Declaration

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

## Discussion

Discussion When the value of this property is true if the button’s border is displayed only when the pointer is over the button and the button is active. When it is false, the border continues to display when the pointer is outside of the button’s bounds.

## See Also

### Managing Graphics Attributes

- [backgroundColor](appkit/nsbuttoncell/backgroundcolor.md)
- [bezelStyle](appkit/nsbuttoncell/bezelstyle.md)
- [gradientType](appkit/nsbuttoncell/gradienttype.md)
- [imageDimsWhenDisabled](appkit/nsbuttoncell/imagedimswhendisabled.md)
- [isOpaque](appkit/nsbuttoncell/isopaque.md)
- [isTransparent](appkit/nsbuttoncell/istransparent.md)
