• 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
re: Observing Managed Object Changes. Was: Strange ... behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Observing Managed Object Changes. Was: Strange ... behavior


  • Subject: re: Observing Managed Object Changes. Was: Strange ... behavior
  • From: Ben Trumbull <email@hidden>
  • Date: Wed, 25 Feb 2009 17:11:41 -0800

Well, that was easy to test and indeed I found that you found a bug in
my idea.  The only way to fix it would be if we Apple had given us a -
didUnturnIntoFault method, but they did not.

So, it looks like, for observing changes to the properties of managed
objects ---

*  Using NSManagedObjectContextObjectsDidChangeNotification is no good
     since it doesn't give you specific information on the current
change
     which actually caused the notification.

*  Using KVO is no good because observers must be removed before an
     object becomes a fault, and there is no mechanism to find out
     when the object un-becomes a fault, which you need to restore
     your observers.

bug numbers ? 'cause if it's not important enough for you to even file an ER, it's unlikely to be as important as the bazillion other things we have to do, as far as the eye can see...


- Ben

_______________________________________________

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


  • Follow-Ups:
    • Re: Observing Managed Object Changes. Was: Strange ... behavior
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: makeKeyAndOrderFront Crashing
  • Next by Date: Re: do i need to create autorelease pool?
  • Previous by thread: Re: NSURL behaviour at odds with documentation
  • Next by thread: Re: Observing Managed Object Changes. Was: Strange ... behavior
  • Index(es):
    • Date
    • Thread