Error on NSTableView
Error on NSTableView
- Subject: Error on NSTableView
- From: Roberto Sobachi <email@hidden>
- Date: Fri, 6 Feb 2004 16:01:45 +0100
Why this returns:
2004-02-06 14:29:12.557 Comics[966] Write it! It seems...
2004-02-06 14:29:12.584 Comics[966] *** -[NSCFArray objectForKey:]:
selector not recognized
2004-02-06 14:29:12.585 Comics[966] *** -[NSCFArray objectForKey:]:
selector not recognized
*** malloc[966]: Deallocation of a pointer not malloced: 0xbfffe4a0;
This could be a double free(), or free() called with the middle of an
allocated block; Try setting environment variable MallocHelp to see
tools to help debug
And the function is: where comicsArray is an Array of NDDictionary:
- (id) tableView: (NSTableView *) tableView objectValueForTableColumn:
(NSTableColumn *) column row: (int) row
{
id theRecord;
theRecord = [comicsArray objectAtIndex:row];
if ([[column identifier] isEqualToString:@"protagonist"])
return [theRecord objectForKey:@"protagonist"];
else return @"Unknown!";
}
_______________________________________________
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.