<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSForm/setFrameSize(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSForm(im)setFrameSize:"
  },
  "title" : "setFrameSize(_:)"
}
-->

# setFrameSize(_:)

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

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

## Parameters

`newSize`

The new size of the form.

## 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`](/documentation/AppKit/NSMatrix/autosizesCells).

---

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)