Facile Core Data Question
Facile Core Data Question
- Subject: Facile Core Data Question
- From: Jamie Hardt <email@hidden>
- Date: Sat, 22 Nov 2008 18:37:44 -0800
How to I cause a managed object to perform a certain action upon
deletion? If I were working with Ruby On Rails or some other ORMs,
I'd be able to define an on_delete method or action that would
automatically be invoked. In core data, it seems that the best thing
to do is to have a godlike object listening for the
"NSManagedObjectContextObjectsDidChangeNotification" and doing the
action upon the object's removal.
I don't think I'm doing this exactly the right way, and I'd like to
know if anyone else does this differently?
Jamie Hardt
The Sound Department
http://www.soundepartment.com/
http://www.imdb.com/name/nm0362504/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden