On Sep 14, 2009, at 5:09 AM, Matthew Lindfield Seager <matt...@sagacity.com.au
> wrote:
I have a transient calculatedBalance property in my Account entity
that is currently implemented as a read-only property returning:
[self valueForKeyPath:@"transactio...@sum.amount"]
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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com