NSManagedObjectContextObjectsDidChangeNotification gives me a userInfo dictionary that segregates changes into the type of change: inserted, updated, deleted.

Well, in my app, and it seems that in any real-life app, the more important segregation, and the dependency in the first branching of my code, is the object class or entity, not the type of change.

For example, if there has been any type of change to an Employee, I need to do something completely different than if there is any type of change to a Fruit.

So, in my handler method for NSManagedObjectContextObjectsDidChangeNotification, I must first enumerate through the userInfo dictionaries and make a new dictionary where the keys are object class or entity instead.

Am I doing something wrong?

Jerry Krinock



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to