Observing Core Data model changes
Observing Core Data model changes
- Subject: Observing Core Data model changes
- From: Andres <email@hidden>
- Date: Sat, 22 Apr 2006 18:19:17 -0600
Hi,
I am working with a Core Data document application and I am trying to
find a way to track all the changes made to managed objects but from
a non managed class. This class should know about changes to
properties, object creation, etc.
I am new to Cocoa and after checking the documentation I just can't
find a "supported" way of receiving this "events". So far I have come
with a couple solutions but none of them are very pleasant:
1. Use notification center and add code to every managed object in
order to send notifications about the changes
2. In each awakeFromInsert register a singleton for kv observing of
"self"
I hope there is a better way to do it, that is why I am asking for a
little orientation here.
Thanks,
Andrés
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden