Working with Tables: Writing an Address Book Application
Subject:   Won't Work
Date:   2005-01-27 22:43:55
From:   DSG
Your articles are Great learning tools. Thanks you for your work.
I just can't get this to work.

I'm using X code 1.1

I get two warnings when I run the compiler:

Controller.m:74: cannot find method `-indentifier'; return type `id' assumed
Controller.m:74: `NSTableColumn' may not respond to `-indentifier'
Controller.m:35: `NSMutableDictionary' may not respond to `+array'
The last warning is in the tempArray = object. I changed it to NSMutableArray as one of the other post mentioned.

- (id) tableView: (NSTableView *) aTableView
objectValueForTableColumn (NSTableColumn *)aTableColumn
row: (int) rowIndex
id theRecord, theValue;
theRecord = [records objectAtIndex:rowIndex];
Warning line: theValue = [theRecord objectForKey: [aTableColumn indentifier]];
return theValue;

When I run the program to add a name, I get this on the consol:

2005-01-27 23:20:20.723 Address Book[655] *** -[NSTableColumn indentifier]: selector not recognized
2005-01-27 23:20:20.725 Address Book[655] *** -[NSTableColumn indentifier]: selector not recognized
*** malloc[655]: Deallocation of a pointer not malloced: 0xbfffe4c0; 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

The code is exactly as your artical discribes. It won't add the names in text fields. Whats up?? Thanks!!