MonobjcMonobjc Documented Class Library
NSMatrix Constructor (frameRect, aMode, classId, numRows, numColumns)
NamespacesMonobjc.AppKitNSMatrixNSMatrix(NSRect, NSMatrixMode, Class, NSInteger, NSInteger)

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 BasicVisual C++
public NSMatrix(
	NSRect frameRect,
	NSMatrixMode aMode,
	Class classId,
	NSInteger numRows,
	NSInteger numColumns
)
Public Sub New ( _
	frameRect As NSRect, _
	aMode As NSMatrixMode, _
	classId As Class, _
	numRows As NSInteger, _
	numColumns As NSInteger _
)
public:
NSMatrix(
	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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)