From: Steven A. <st...@ar...> - 2009-01-25 05:00:30
|
Hello, I am working through the book Cocoa Programming for Mac OS X by Aaron Hillegass using RubyCocoa rather than Objective-C, and I am at the section where we are attempting to implement undo for the add new employee and delete new employee buttons. My controller object as an @employees array as a member value. Given this name, I have implemented, in my controller, the functions: insertObject_inEmployeesAtIndex(p, idx), and removeObjctFromEmployeesAtIndex(idx) According to the book, "[...] these methods will be called automatically when the NSArrayController wishes ro insert or remove messages." However, my functions do not seem to be getting called. I have put NSLog statements to see whether they are being called, but right now it appears not. My project is packaged below. If you have any idea what I might be doing wrong, please let me know! eteven |