nsmatrix-fullcode
Enclosed is the full code. Wish I knew how to copy from the nib file, so I could send that too. Basically, it has two custom view items, with text fields inside. The first one inputs a string, and two numbers. This then goes into the second matrix, in row and column inputted. Thanks.
Adam
#import "asmcv.h"
@implementation asmcv
prototypeTextField=[[NSTextField alloc]init];
NSMatrix*myMatrix1 = [[NSMatrix alloc]
initWithFrame:NSMakeRect(138.0f, 85.0f, 0.0f, 0.0f)
mode:NSRadioModeMatrix
prototype
rototypeTextField
numberOfRows:1
numberOfColumns:3];
prototypeTextField=[[NSTextField alloc]init];
NSMatrix*myMatrix2 = [[NSMatrix alloc]
initWithFrame:NSMakeRect(138.0f, 85.0f, 0.0f, 0.0f)
mode:NSRadioModeMatrix
prototype
rototypeTextField
numberOfRows:2
numberOfColumns:2];
myString=[[NSString alloc]init];
int i,j;
i=[myMatrix1 selectCellAtRow:1 Column:2];
j=[myMatrix1 selectCellAtRow:1 Column:3];
myString=[myMatrix1 selectCellAtRow:1 Column:1];
myCell=[myMatrix2 makeCellAtRow:i column:j];
theTarget=[myCell target];
[myCell setTarget:theTarget];
[myCell setAction
selector(myButton
];
@end