Initializes and returns a newly allocated matrix of the specified size using cells of the given class.
Original signature is '- (id)initWithFrame:(NSRect)frameRect mode:(NSMatrixMode)aMode cellClass:(Class)classId numberOfRows:(NSInteger)numRows numberOfColumns:(NSInteger)numColumns'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual Id InitWithFrameModeCellClassNumberOfRowsNumberOfColumns( NSRect frameRect, NSMatrixMode aMode, Class classId, NSInteger numRows, NSInteger numColumns )
Parameters
- frameRect (NSRect)
- The matrix's frame.
- aMode (NSMatrixMode)
- The tracking mode for the matrix; this can be one of the modes described in NSMatrixMode.
- classId (Class)
- The class to use for any cells that the matrix creates and uses. This can be obtained by sending a class message to the desired subclass of NSCell.
- numRows (NSInteger)
- The number of rows in the matrix.
- numColumns (NSInteger)
- The number of columns in the matrix.
Return Value
The initialized instance of NSMatrix.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)