Re: KVO & Bindings: Proxy object & change notifications

2009-03-11 Thread Ken Thomases
On Mar 11, 2009, at 2:09 AM, Dave Keck wrote: Also, at the time that you invoke -willChangeValueForKey: have you already changed your internal state such that invoking [theProxy valueForKey:@"someFeature"] returns the "after" value? It should still return the "before" value at that point.

Re: KVO & Bindings: Proxy object & change notifications

2009-03-11 Thread Dave Keck
Hey Ken, thanks for your reply. > Are you sure that PrefCtrl is returning the same proxy each time? Yes. The proxy object is setup in PrefCtrl's -init, and is never changed. > Also, at the time that you invoke -willChangeValueForKey: have you already > changed your internal state such that invok

Re: KVO & Bindings: Proxy object & change notifications

2009-03-10 Thread Ken Thomases
On Mar 10, 2009, at 4:14 AM, Dave Keck wrote: I have a preferences controller object (let's call it PrefCtrl) that's modeled after NSUserDefaultsController (for various reasons, though, it's a custom implementation.) As does NSUDC, it has a 'values' property, which mediates access to the prefere

KVO & Bindings: Proxy object & change notifications

2009-03-10 Thread Dave Keck
Hey list, I'm having some issues with KVO and updating UI elements via bindings; I'd greatly appreciate some clarification on the KVO-compliant way to do what I'm attempting: I have a preferences controller object (let's call it PrefCtrl) that's modeled after NSUserDefaultsController (for various