[Adium-devl] Problems with AIPreferenceController and KVO
Colin Barrett
timber at lava.net
Tue Jan 8 03:22:00 UTC 2008
On Jan 7, 2008, at 5:06 PM, Evan Schoenberg wrote:
> However, it breaks KVO for AIPreferenceController horribly. When a
> dictionary for a group is removed from the cache, it hasn't
> changed, and asking the preference controller about it would
> retrieve the (same) information and return it. However, removing
> it without calling the willChangeValueForKey: /
> didChangeValueForKey: leads to errors like:
What about wrappers? The wrapper would do the job of evicting the
cache or looking up from disk when necessary.
I suppose this depends on wether or not KVO requires that an objects
address in memory stay the same.
-Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20080107/c705b60c/attachment-0001.html>
More information about the devel
mailing list