Skip navigation.
 
mlobjectDidEndEditing bug?
FROM : Andrew Merenbach
DATE : Sat Jul 22 19:00:27 2006

Hi, all.  I've been searching the archives and the docs, but haven't 
been able to find anything that answers this issue.  I have a Core 
Data app and made a subclass of NSArrayController: in order to 
provide some custom behaviours.  One such behaviour is to rearrange 
itself whenever its content array is altered.

To this end, I have employed an override of -objectDidEndEditing:. 
Yet it doesn't get called if an edit is cancelled (or, rather, if 
either the escape key is pressed, or no change is made before return 
is pressed).

Yet the docs say, of objectDidEndEditing, that is is "Invoked to 
inform the receiver that editor has committed or discarded its 
changes."  That "or discarded" confuses me immensely, since aborting 
the editing process discards changes, as does not making any change 
(i.e., clicking on a table view item once to edit it, then 
immediately pressing return without typing or deleting any characters).

Is this a misinterpretation on my part, or is it either a bug or a 
mistake in the docs?

Related mailsAuthorDate
No related mails found.