• 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: key path blues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key path blues


  • Subject: Re: key path blues
  • From: Brian Smith <email@hidden>
  • Date: Fri, 2 Feb 2007 05:19:10 +0800


On Feb 2, 2007, at 3:27 AM, Dave Sopchak wrote:


Also, I don't put the willChangeValueForKey stuff in my top object and yet things work just fine in the text fields. Is this because of the NSObjectController attached to the top object is handling such things?



Possible.

You rethink about what KVO is which is to observe a single object's properties/values. If I understand this correct, you have object A which uses object B. You register to observe values in object A, so A only knows about changes in itself. You have not registered with object B to observe any of its values. So, if you want A to notify clients of changes in values in B you need to add accessors to A that forward the messages to B. Another way would be to have A observe B and have object A's observing method call willChangeValueForKey/ didChangeValueForKey for your @"polCurve.dwell" key path. Also, it would have help to see a sample of the code your calling as opposed to the code which calls it. (We all know how to call accessors, so there is not much to see there.)


Regards, Brian Smith http://www.suaveware.com



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: key path blues
      • From: Dave Sopchak <email@hidden>
References: 
 >key path blues (From: Dave Sopchak <email@hidden>)
 >Re: key path blues (From: "Stephen Deken" <email@hidden>)
 >Re: key path blues (From: Dave Sopchak <email@hidden>)

  • Prev by Date: Re: key path blues
  • Next by Date: Re: filling & sorting and NSTableView through bindings
  • Previous by thread: Re: key path blues
  • Next by thread: Re: key path blues
  • Index(es):
    • Date
    • Thread