When building the completed application I get this error in the windowControllerDidLoadNib method.
Build Error: tableView undeclared
- (void)windowControllerDidLoadNib:(NSWindowController *)windowController
// user interface preparation code
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
colorAsData = [defaults objectForKey:BNRTableBgColorKey];
[tableView setBackgroundColor:[NSKeyedUnarchiver unarchiveObjectWithData:colorAsData]];
I solved this problem by adding “IBOutlet NSTableView *tableView;” to MyDocument.h.
In the next step I connected the Outlet “tableView” of the File’s Owner in MyDocument.xib to the Table View itself.
After another Build&Run everything seems ok and the Background Color is set to the selected value.
Now my question:
Is there something missing in this chapter or did I something wrong, so that I have to fix it that way?
I hope you understand what I want to say.