• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Error on NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Error on NSTableView (From: Roberto Sobachi <email@hidden>)

  • Prev by Date: Re: Entering UniCode
  • Next by Date: Re: Sending a CGI request and getting result
  • Previous by thread: Error on NSTableView
  • Next by thread: Previous release SDKs
  • Index(es):
    • Date
    • Thread