Can't get challenge 2 to work. I get the following in the console and the application hangs without opening the window...
2009-07-09 13:48:24.596 RainManManual[29907:813] *** -[_NSControllerObjectProxy copyWithZone:]:
unrecognized selector sent to instance 0x16c1f0
Is there more code I need to add to what is listed on pages 136-137? If not I suspect I am not setting things up in IB correctly. This exception hits right after the numberOfRowsInTableView method is called. Which I think is the first time the tableView accesses the method.
I made a copy of my working RaiseMan and continued with the original
I did not change anything in person.h
I added the code found on pages 136-137
In IB I replaced the ArrayController with a custom object.
Set the custom object's class to MyDocument
Set the custom object's outlet to the tableView (drag from controller to the tableView
Set the data source and delegate of the tableView to the controller (drag from the tableView to the Controler)
Set the employee and raise column's identifier to personName and expectedRaise in the inspector
Set the sent actions for the Add Employee and Delete buttons to createEmployee and removeEmployee (drag from buttons to Controller)
What am I missing or doing wrong?
Thanks for any help.
John
2009-07-09 13:48:24.596 RainManManual[29907:813] *** -[_NSControllerObjectProxy copyWithZone:]:
unrecognized selector sent to instance 0x16c1f0
Is there more code I need to add to what is listed on pages 136-137? If not I suspect I am not setting things up in IB correctly. This exception hits right after the numberOfRowsInTableView method is called. Which I think is the first time the tableView accesses the method.
I made a copy of my working RaiseMan and continued with the original
I did not change anything in person.h
I added the code found on pages 136-137
In IB I replaced the ArrayController with a custom object.
Set the custom object's class to MyDocument
Set the custom object's outlet to the tableView (drag from controller to the tableView
Set the data source and delegate of the tableView to the controller (drag from the tableView to the Controler)
Set the employee and raise column's identifier to personName and expectedRaise in the inspector
Set the sent actions for the Add Employee and Delete buttons to createEmployee and removeEmployee (drag from buttons to Controller)
What am I missing or doing wrong?
Thanks for any help.
John