Array Controllers and Insertion notifications
Array Controllers and Insertion notifications
- Subject: Array Controllers and Insertion notifications
- From: Edwin Vane <email@hidden>
- Date: Tue, 13 Sep 2005 15:07:38 -0400
- Mail-followup-to: Cocoa-Dev <email@hidden>
Hi,
I'm hoping to draw on the experience here. Was there (and perhaps there
still is) an issue with NSArrayController that it would never provide
NSKeyValueChangeInsertion as the change type inside
observeValueForKeyPath:... when values were actually inserted into the
array that the array controller is bound to?
I find that the array controller will only tell me the array was changed
(ie, via NSKeyValueChangeSetting) when new values are inserted. I notice
a similar problem that mmalc worked around in his Graphics Bindings
example.
Incidentally, when not using an array controller (ie, observing the
model array directly without using NSArrayController), I do get
insertion,removal, and replacement notifications instead of the
generic change notification.
Since I'm stuck in pre-Tiger for now (where this problem may not exist)
is there a fix or must I learn to live with it.
--
Edwin Vane
MMath Candidate
Computer Graphics Lab
School of Computer Science
University of Waterloo
_______________________________________________
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