On 2014 Mar 29, at 11:44, Dado Colussi dado.colu...@gmail.com wrote:
If you have undo/redo going on, then restart observing in
awakeFromSnapshotEvents when NSSnapshotEventUndoDeletion flag is present.
Check out the other flags, too.
Thank you, Dado. I’d never noticed that method. I found
On Mar 30, 2014, at 11:29 PM, Jerry Krinock je...@ieee.org wrote:
NSSnapshotEventRollback, if this is due to a deleted object being resurrected
because the deletion was unsaved. Don't do anything, because you will also
receive -awakeFromInsert. Seems weird, but that's what happens.
That
On 2014 Mar 31, at 00:06, Kyle Sluder k...@ksluder.com wrote:
That directly contradicts the -awakeFromInsert documentation, which states
“This method is invoked only once in the object's lifetime.”
If you are certain you are receiving -awakeFromInsert on the *same*
NSManagedObject
On 31 March 2014 01:29, Jerry Krinock je...@ieee.org wrote:
Question: You do some initialization, adding observers for example, in
-awakeFromInsert and -awakeFromFetch, and you tear down these
initializations, removing observers for example, in -willTurnIntoFault. Do
you need to do anything
On Mon, 31 Mar 2014 04:29:51 -0500, Dado Colussi said:
Question: You do some initialization, adding observers for example, in
-awakeFromInsert and -awakeFromFetch, and you tear down these
initializations, removing observers for example, in -willTurnIntoFault. Do
you need to do anything in
A subclass of NSManagedObject needs to observe some stuff.
So, in -awakeFromFetch and -awakeFromInsert, I invoke an -initializeObservers
method which adds observers like this…
[[NSNotificationCenter defaultCenter] addObserver:self
If you have undo/redo going on, then restart observing in
awakeFromSnapshotEvents when NSSnapshotEventUndoDeletion flag is present.
Check out the other flags, too.
/Dado
On 29 March 2014 13:13, Jerry Krinock je...@ieee.org wrote:
A subclass of NSManagedObject needs to observe some stuff.