---
title: NSFrameRect
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsframerect
---

# NSFrameRect

Draws a bordered rectangle.

## Declaration

```occ
extern void NSFrameRect(NSRect rect);
```

## Parameters

- `rect`: The bounding rectangle (in the current coordinate system) in which to draw.

## Discussion

Discussion Draws a frame around the inside of aRect in the current color and using the NSCompositeCopy compositing operation. The width is equal to 1.0 in the current coordinate system. Since the frame is drawn inside the rectangle, it will be visible even if drawing is clipped to the rectangle. Because this function does not draw directly on the line, but rather inside it, it uses the current fill color (not stroke color) when drawing. For more information, see NSCompositingOperation.

## See Also

### Drawing Rectangles

- [NSFrameRectWithWidth](appkit/nsframerectwithwidth.md)
- [NSFrameRectWithWidthUsingOperation](appkit/nsframerectwithwidthusingoperation.md)
- [NSEraseRect(_:)](appkit/nseraserect(_:).md)
- [NSRectFill](appkit/nsrectfill.md)
- [NSRectFillList](appkit/nsrectfilllist.md)
- [NSRectFillListUsingOperation](appkit/nsrectfilllistusingoperation.md)
- [NSRectFillListWithColors](appkit/nsrectfilllistwithcolors.md)
- [NSRectFillListWithColorsUsingOperation](appkit/nsrectfilllistwithcolorsusingoperation.md)
- [NSRectFillListWithGrays](appkit/nsrectfilllistwithgrays.md)
- [NSRectFillUsingOperation](appkit/nsrectfillusingoperation.md)
- [NSDrawTiledRects(_:_:_:_:_:)](appkit/nsdrawtiledrects(_:_:_:_:_:).md)
- [NSDrawGroove(_:_:)](appkit/nsdrawgroove(_:_:).md)
- [NSHighlightRect](appkit/nshighlightrect.md)
