On Sep 14, 2009, at 5:09 AM, Matthew Lindfield Seager <[email protected] > wrote:

I have a transient calculatedBalance property in my Account entity
that is currently implemented as a read-only property returning:
[self valueForKeyPath:@"[email protected]"]

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 protected])

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 [email protected]

Reply via email to