[Adium-devl] Problems with AIPreferenceController and KVO

David Smith catfish.man at gmail.com
Tue Jan 8 05:48:01 UTC 2008


On Jan 7, 2008, at 7:22 PM, Colin Barrett wrote:

> 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

This is essentially how Core Data works (replace "Wrapper" with  
"Fault" and "disk" with "database").

			David





More information about the devel mailing list