Re: How to observe every child entity
Re: How to observe every child entity
- Subject: Re: How to observe every child entity
- From: Kyle Sluder <email@hidden>
- Date: Mon, 14 Sep 2009 08:23:23 -0700
On Sep 14, 2009, at 5:09 AM, Matthew Lindfield Seager <email@hidden
> wrote:
I have a transient calculatedBalance property in my Account entity
that is currently implemented as a read-only property returning:
[self valueForKeyPath:@"email@hiddent"]
This appears to work but I'd like observers of this property to be
notified every time a transaction is added, modified or removed.
If the only reason you want this is so that observers of
calculatedBalance are notified when transactions changes (and
therefore calculatedBalance), implement -
keyPathsAffectingCalculatedBalance: to return a set that includes
@"transactions".
--Kyle Sluder
_______________________________________________
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