Bindings, Dicts and Cancel Window
Bindings, Dicts and Cancel Window
- Subject: Bindings, Dicts and Cancel Window
- From: Trygve Inda <email@hidden>
- Date: Sun, 23 Jul 2006 12:06:22 +0000
- Thread-topic: Bindings, Dicts and Cancel Window
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden