Hello Ben,
Thanks a lot for your help.
I've used
[self addObserver: forKeyPath: options: context: NULL];
inside awakeFromFetch/FromInsert of my observed class in order to get
each notification.
It works very well.
Again thank you
Il giorno 27/apr/08, alle ore 06:44, Ben Lachman ha scritto:
A few additional things to consider:
1) Avoid overriding validateValue:forKey:error (see "Property-Level
Validation" in http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdValidation.html)
2) Avoid overriding initWithEntity:insertIntoManagedObjectContext:
(see "Met
I'm not completely clear on what you're wanting, but you might try this:
•Have your controller observe the managed object context's
NSManagedObjectContextObjectsDidChangeNotification, the userinfo of
this note contains the key NSInsertedObjectsKey and
NSDeletedObjectsKey which should let yo
Hello,
I need to observe from a controller class when a particular attribute
of a NSManagedObject in my persistent store is changed.
I've tried with:
- (BOOL)validateValue:(id *)value forKey:(NSString *)key error:
(NSError **)error
in my class. Unfortunatly I need to keep the old value in o