• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Observing Core Data model changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Observing Core Data model changes
      • From: mmalcolm crawford <email@hidden>
    • Re: Observing Core Data model changes
      • From: Matthew Firlik <email@hidden>
  • Prev by Date: Re: Keys of the kingdom - THANKS!
  • Next by Date: Object within CD Document
  • Previous by thread: Re: NSUndoManager and undo history
  • Next by thread: Re: Observing Core Data model changes
  • Index(es):
    • Date
    • Thread