Re: Error on NSTableView
Re: Error on NSTableView
- Subject: Re: Error on NSTableView
- From: Steve Christensen <email@hidden>
- Date: Fri, 6 Feb 2004 09:42:46 -0800
Just a guess, but it looks like comicsArray is actually an array of
arrays, rather than an array of dictionaries.
steve
On Feb 6, 2004, at 7:01 AM, Roberto Sobachi wrote:
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.