• 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: [UNSOLVED] How to observe every child entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [UNSOLVED] How to observe every child entity


  • Subject: Re: [UNSOLVED] How to observe every child entity
  • From: Jim Correia <email@hidden>
  • Date: Sun, 20 Sep 2009 14:08:03 -0400

First, a bit about terminology.

What you are talking about is not observing child entities. You wish to observe related instances (NSManagedObject or subclass thereof). The entity describes the instance, but is not the instance.

(I'm trying to avoid being overly pedantic, but talking about things using a common language that everyone agrees upon is important.)

On Sep 16, 2009, at 9:25 PM, Matthew Lindfield Seager wrote:

When a user undoes a deletion it calls the primitive accessor which
does not emit KVC/KVO notifications.

It is correct that when you undo/redo, Core Data does not typically call the public accessors. It does, however, emit the required KVO change notifications when updating the values.


(And as such, you can observer the relationship if you need to know when it changes. Self-observing, unfortunately, opens up another can of worms.)

If you have a specific situation where NSManagedObject is no emitting KVO change notifications on undo or redo, that would be a bug.

- Jim
_______________________________________________

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


References: 
 >How to observe every child entity (From: Matthew Lindfield Seager <email@hidden>)
 >Re: How to observe every child entity (From: Kyle Sluder <email@hidden>)
 >Re: How to observe every child entity (From: Matthew Lindfield Seager <email@hidden>)
 >[SOLVED] How to observe every child entity (From: Matthew Lindfield Seager <email@hidden>)
 >[UNSOLVED] How to observe every child entity (From: Matthew Lindfield Seager <email@hidden>)

  • Prev by Date: NSOpenGL Full Screen
  • Next by Date: MutableDictionary setValue:forKeyPath - strange behavior
  • Previous by thread: Re: [UNSOLVED] How to observe every child entity
  • Next by thread: Newbie question - core data
  • Index(es):
    • Date
    • Thread