From: Patrick G. <pge...@wa...> - 2008-08-03 13:08:11
|
> For the longest time, I couldn't get the NSOutlineView to > acknowledge the @root object at all. Even though this same code > worked previously without bindings. > I have no idea why the FaultTreeDisplayNode is being sent the > copyWithZone selector nor have I ever seen anything that requires > you to do so for either Bindings or DataSources. When updating values, Bindings try to call setObjectValue on your cell. If that doesn't work, next step is trying to copy the object with copyWithZone. In a ruby project I added this … class ItemTableViewCell < NSTextFieldCell def setObjectValue(obj) @item = obj end … then used @item's contents in drawInteriorWithFrame_inView to draw the cell. If you don't draw yourself, just define a new cell class and add that setObjectValue implementation. -Patrick |