-willTurnIntoFault or -didTurnIntoFault? I guess it's stupid to release properties in both of them, so I must choose one. Which is the best?
+1
A:
The former is invoked just BEFORE the object is turned into a fault, the latter just AFTER. What kind of custom non-managed properties are you referring to? The choice may depend on this.
unforgiven
2010-06-07 16:52:23
+1
A:
The object is not "gone" when turned into a fault. It is reduced to its smallest size (just an empty object with an -objectID
). If you are doing something in the -didTurnIntoFault
that causes a property to be touched you would reverse the fault which is bad.
If your clean up requires touching a property you should do it in the -willTurnIntoFault
. Otherwise it is pretty irrelevant which you choose.
Marcus S. Zarra
2010-06-12 21:10:05