Re: Bindings, User Defaults and the UI
Re: Bindings, User Defaults and the UI
- Subject: Re: Bindings, User Defaults and the UI
- From: "Jeffrey E. Forcier" <email@hidden>
- Date: Wed, 28 Sep 2005 21:46:39 -0400
Unless I'm mistaken, those are part of the NSKeyValueObserving
protocol that an NSUserDefaultsController's values() object conforms
to, correct? Calling them on said object before and then after the
call to setValue:forKeyPath: doesn't appear to make a difference.
E.g., for each checkbox whose name is 'key':
keyString = "syncFields.%s" % key
self.controllerValues.willChangeValueForKey_(keyString)
self.controllerValues.setValue_forKeyPath_(objc.YES,keyString)
self.controllerValues.didChangeValueForKey_(keyString)
On Sep 28, 2005, at 8:33 PM, John C. Randolph wrote:
See -willChangeValueForKey: and -didChangeValueForKey:
-jcr
--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission. If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.
_______________________________________________
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