Hi, for some reason it seems my NSTableView is not really working. It crashes the app and gives the following messages in Console
Part of the code:
Where candidates is a "global" NSArray.
Please help me. Thank you.
Code:
2009-01-10 17:26:05.017 MyApp[28858:10b] *** -[NSCFArray rowIndex]: unrecognized selector sent to instance 0x10803b0
2009-01-10 17:26:05.018 MyApp[28858:10b] *** -[NSCFArray rowIndex]: unrecognized selector sent to instance 0x10803b0
2009-01-10 17:26:06.856 MyApp[28858:10b] *** -[NSCFArray rowIndex]: unrecognized selector sent to instance 0x10803b0
2009-01-10 17:26:06.859 MyApp[28858:10b] *** -[NSCFArray rowIndex]: unrecognized selector sent to instance 0x10803b0
Part of the code:
Code:
-(int)numberOfRowsInTableView:(NSTableView *)aTable {
return [candidates count];
}
-(id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)tableColumn
row:(int)rowIndex; {
return [candidates rowIndex];
}
Where candidates is a "global" NSArray.
Please help me. Thank you.