---
title: "init(frame:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsmatrix/init(frame:)"
---

# init(frame:)

Initializes a newly allocated matrix with the specified frame.

## Declaration

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

## Parameters

- `frameRect`: The frame with which to initialize the matrix.

## Return Value

Return Value The NSMatrix, initialized with default parameters. The new NSMatrix contains no rows or columns. The default mode is NSRadioModeMatrix. The default cell class is NSActionCell.

## Discussion

Discussion See NSMatrix.

## See Also

### Initializing an NSMatrix Object

- [init(frame:mode:cellClass:numberOfRows:numberOfColumns:)](appkit/nsmatrix/init(frame:mode:cellclass:numberofrows:numberofcolumns:).md)
- [init(frame:mode:prototype:numberOfRows:numberOfColumns:)](appkit/nsmatrix/init(frame:mode:prototype:numberofrows:numberofcolumns:).md)
