Re: key path blues
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