/ more on NSTableView /
/ more on NSTableView /
- Subject: / more on NSTableView /
- From: Luis E! <email@hidden>
- Date: Wed, 23 Jun 2004 20:37:06 +0100 (BST)
So I have my class CharacterList which has the
NSTableView methods. This class has two
NSMutableArrays: theCharactersArray ((the one that I
want to display in the table view)) and
theDialogsPerCharacterArray ((whatever)).
The implementations are like this:
- (int) numberOfRowsInTableView:(NSTableView*)table {
return [theCharactersArray count];
}
- (NSString *) tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn
*)aTableColumn row:(int)rowIndex {
return [theCharactersArray objectAtIndex: rowIndex];
}
When I run the app, the Table shows the info but when
I click in a name or in the scroll bar, it dies.
Debugging it I get an error in the return of the
objectValueForTableColumn: it's a EXC_BAD_ACCESS
signal.
I thought it was the way I initialized
theCharacterList = [CharacterList new];
so I changed it to
theCharacterList = [[CharacterList alloc] init];
Didn't work either.
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself
http://uk.messenger.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.