Re: KVO: programmatically created custom views not getting initial value notifications
Re: KVO: programmatically created custom views not getting initial value notifications
- Subject: Re: KVO: programmatically created custom views not getting initial value notifications
- From: George Orthwein <email@hidden>
- Date: Fri, 19 May 2006 19:21:12 -0400
What sort of custom view? Are you implementing all the binding and
observing yourself? If so, it'll behave however you programmed it
to...
A Webview subclass...
Are the other views being notified of *initial* values, or are they
simply responding to the array controllers' delayed fetch:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreData/Articles/cdBindings.html>
Ack,Yes! That's exactly it! Thanks very much. Logging my controller
at the time of addObserver:... I see it is empty when the first view
registers but not when the other views register.
My confusion stemmed partially from thinking that the act of
registering itself sent the *current value* to the observer (as I
believe it does when binding). I see now that is NOT the case with
pure KVO.
Thanks!
George
_______________________________________________
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