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

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


  • Follow-Ups:
    • Re: How to observe every child entity
      • From: Matthew Lindfield Seager <email@hidden>
References: 
 >How to observe every child entity (From: Matthew Lindfield Seager <email@hidden>)

  • Prev by Date: Re: NSTextView resizeability and scrolling
  • Next by Date: Re: NSCell setControlSize:NSSmallControlSize doesn't show change
  • Previous by thread: How to observe every child entity
  • Next by thread: Re: How to observe every child entity
  • Index(es):
    • Date
    • Thread