Skip navigation.
 
mlBindings, Dicts and Cancel Window
FROM : Trygve Inda
DATE : Sun Jul 23 14:06:22 2006

I have a prefs-like window with all the control values attached to
key/values in a dict through bindings. Works great.

I need to be able to handle the situation where the user clicks cancel, and
since they are bindings there are updated on the fly as the user is clicking
so my thought is...

Before showing the window, use CFPropertyListCreateDeepCopy to copy the
dict.

Now, how do I insert it back in a KVO way - or does it need to be KVO at
all? Can I just replace the entire (newly modified) dictionary with the old
one, or do I need to step through each key and insert the old values into
the newly modified dict.

I hope this is clear.

Trygve

Related mailsAuthorDate
mlBindings, Dicts and Cancel Window Trygve Inda Jul 23, 14:06
mlRe: Bindings, Dicts and Cancel Window Mike Abdullah Jul 23, 18:59
mlRe: Bindings, Dicts and Cancel Window mmalc crawford Jul 23, 19:27