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: mmalcolm crawford <email@hidden>
- Date: Fri, 19 May 2006 14:11:42 -0700
On May 19, 2006, at 2:00 PM, George Orthwein wrote:
My app has one or more custom views that observe an
NSArrayController (which is bound to a MOC):
[docPrefsController addObserver:self
forKeyPath:@"selection.headerColor" options:nil context:NULL];
[...]
Any ideas why there is no notification of the initial values? I
can't quite tell for sure from the docs if current values are
supposed to be sent upon registering, but I assume so.
What sort of custom view? Are you implementing all the binding and
observing yourself? If so, it'll behave however you programmed it to...
I've verified that the controller (core data) values are
initialized by the time my initial "nib" custom view registers for
KVO, so I'm having trouble seeing how the situation is different
between the initial view and the later created views.
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>
mmalc
_______________________________________________
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