FROM : Keary Suska
DATE : Tue Jul 01 23:26:22 2008
7/1/08 3:01 PM, also sprach <email_removed>:
> On Tue, Jul 1, 2008 at 9:50 PM, Keary Suska <<email_removed>> wrote:
>
>> I thought I saw somewhere a bug in KVO where notifications aren't properly
>> sent in certain situations when "upper" parts of the path are updated. E.g.,
>> I have a situation where is am observing a keypath
>> "relations.related.content.status.value" but notifications aren't sent when
>> "related" is changed (in a KVO-compliant way).
>
> Is every part of the key path KVO compliant? If not, the whole chain is
> broken.
I think so. "relations" and "content" are read-only (no public setters).
Notifications aren't sent for them as they are never changed throughout the
lifecycle of an object. I.e., they are both dictionaries, and only their
contents, not the properties themselves, may vary. Would this be an issue?
> Is any part of the key path a descendant of NSObjectController? If so,
> the whole chain may be broken ;)
Nope.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
DATE : Tue Jul 01 23:26:22 2008
7/1/08 3:01 PM, also sprach <email_removed>:
> On Tue, Jul 1, 2008 at 9:50 PM, Keary Suska <<email_removed>> wrote:
>
>> I thought I saw somewhere a bug in KVO where notifications aren't properly
>> sent in certain situations when "upper" parts of the path are updated. E.g.,
>> I have a situation where is am observing a keypath
>> "relations.related.content.status.value" but notifications aren't sent when
>> "related" is changed (in a KVO-compliant way).
>
> Is every part of the key path KVO compliant? If not, the whole chain is
> broken.
I think so. "relations" and "content" are read-only (no public setters).
Notifications aren't sent for them as they are never changed throughout the
lifecycle of an object. I.e., they are both dictionaries, and only their
contents, not the properties themselves, may vary. Would this be an issue?
> Is any part of the key path a descendant of NSObjectController? If so,
> the whole chain may be broken ;)
Nope.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
| Related mails | Author | Date |
|---|---|---|
| Keary Suska | Jul 1, 22:50 | |
| Hamish Allan | Jul 1, 23:01 | |
| Keary Suska | Jul 1, 23:26 | |
| Kyle Sluder | Jul 1, 23:57 | |
| Keary Suska | Jul 2, 00:18 | |
| Hamish Allan | Jul 2, 01:13 | |
| Keary Suska | Jul 2, 03:12 | |
| Kyle Sluder | Jul 2, 13:42 | |
| Keary Suska | Jul 2, 18:15 |






Cocoa mail archive

