<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGridView/init(frame:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSGridView(im)initWithFrame:"
  },
  "title" : "init(frame:)"
}
-->

# init(frame:)

Creates a newly allocated grid view object with the specified frame rectangle.

```
init(frame frameRect: NSRect)
```

## Parameters

`frameRect`

The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it.

---

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)