---
title: "setFrameSize(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsform/setframesize(_:)"
---

# setFrameSize(_:)

Sets the size of the receiver’s frame size to the specified value.

## Declaration

```swift
func setFrameSize(_ newSize: NSSize)
```

## Parameters

- `newSize`: The new size of the form.

## Discussion

Discussion The width of NSFormCell objects always match the width of their encompassing NSForm object. The cell width is always changed to match the view regardless of the value returned by autosizesCells.

## See Also

### Changing the Appearance of All the Entries

- [setBezeled(_:)](appkit/nsform/setbezeled(_:).md)
- [setBordered(_:)](appkit/nsform/setbordered(_:).md)
- [setEntryWidth(_:)](appkit/nsform/setentrywidth(_:).md)
- [setInterlineSpacing(_:)](appkit/nsform/setinterlinespacing(_:).md)
- [setTitleAlignment(_:)](appkit/nsform/settitlealignment(_:).md)
- [setTitleBaseWritingDirection(_:)](appkit/nsform/settitlebasewritingdirection(_:).md)
- [setTextAlignment(_:)](appkit/nsform/settextalignment(_:).md)
- [setTextBaseWritingDirection(_:)](appkit/nsform/settextbasewritingdirection(_:).md)
- [setTitleFont(_:)](appkit/nsform/settitlefont(_:).md)
- [setTextFont(_:)](appkit/nsform/settextfont(_:).md)
