I am baffled by this, and have not been able to find out why this
happens.
I of course wants the menu item I selects to be shown after I have
selected it.
Does your outline view delegate implement -
outlineView:setObjectValue:forTableColumn:byItem:? If not, the outline
view will reset the cell’s object value at the end of editing to the
the value specified by the data source.
I assume this is something you’re implementing on your own? The
outline view delegate supports:
- (NSCell *)outlineView:(NSOutlineView *)outlineView
dataCellForTableColumn:(NSTableColumn *)tableColumn item:(id)item;
You can return the default value (what you’re using otextFieldCell for
now) with -[NSTableColumn dataCellForRow:].