Re: Array operators (was: Custom canRemove binding)
Re: Array operators (was: Custom canRemove binding)
- Subject: Re: Array operators (was: Custom canRemove binding)
- From: Allan Odgaard <email@hidden>
- Date: Thu, 13 May 2004 15:07:20 +0200
On 6. May 2004, at 3:21, Scott Anguish wrote:
What of Foundation and AppKit are KVO compliant is something that
should be documented.
Going back to my original question, are array operators supposed to be
KVO compliant?
It works for me when the object before the array operator is either
selectedObjects or arrangedObjects from an array controller, but in all
other contexts, I cannot make it work (i.e. I get a run-time exception:
failing to addObserver:... to NSCFArray for the array operator in
question).
I haven't figured out why it works for array controllers, although the
objects returned for the arrangedObjects and selectedObjects keys are
not normal arrays, but somehow I do not think that all array operators
are made KVO compliant by the proxy returned from the array
controller?!?
I also tried to add an observer for an array operator to the object
returned from mutableArrayValueForKeyPath:, but that also failed.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.