0

The previous version of this question was closed because the moderator did not recognize that this is a cell-based Outline not a view-based outline. The answer the moderator suggested does not work for a cell-based outline.

The question as previously asked is:

I have a cell-based NSOutlineView. How do I get the contents of the NSTextFieldCell when the user Quits the app while editing that cell. Currently, attributedStringValue returns the contents before editing began.

Carl Carlson
  • 500
  • 4
  • 17
  • From where and/or when do you want to access the cell? Is `outlineView:setObjectValue:forTableColumn:byItem:` not being called the real issue? – Willeke Dec 13 '20 at 08:45
  • Willeke: You are right. setObjectValue... is not being called when the user quits while editing. I attempt to get the edited value when applicationShouldTerminate is called. Is there another place I should save an edit in progress? – Carl Carlson Dec 13 '20 at 17:55

0 Answers0