Hi, I have created a NSArrayController object which has the following attributes:
Class Name: Person Keys: personName, expectedRaise ContentArray: employees employees is a NSMutableArray contains references to Person objects. employee is part of MyDocument class(subclass of NSDocument). Now my NSTableView has to columns. The 1st column(person Name) is bound to ArrangedObjects.personName. The 2nd column(Expected Raise) is bound to ArrangedObjects.expectedRaise. My window also has to button Add and Remove. On clicking add it adds another Person object to ContentArray via (void)insertObject:(Person *)p inEmployeesAtIndex:(int)index method in Mydocument class. Similarly for Remove. Now my Question was that when I double click on a cell in NSTableView to edit it what method does it call in the MyDocument class(if any) to reflect the edit onto the particular Person object? If it does not call a method in MyDocument class how does it change the instance variables of the particular Person object being edited? Does each cell of the NSTableView have reference to its respective Person Object and it just uses an accessor? Thanks _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]