Re: [UNSOLVED] How to observe every child entity
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