I'm using KVO to get notification of changes to NSArrayController's selectionIndex
[contoller addObserver:self forKeyPath:@"selectionIndex" options:NSKeyValueObservingOptionNew context:NULL];
and when I set the selection using setSelectedObjects: I get notified of selectionIndex changing as I expect. However when I try to get NSKeyValueChangeNewKey from the change dictionary it always returns NULL.
Printing the dictionary shows:
{ kind = 1; new = ""; }
Is this because the selectionIndex value is a NSUInteger and can't be put in a dictionary or am I doing something wrong?
It's not such a problem for me as I can get the selectionIndex from the controller through other means when I get this notification, I'd just like to know why its not doing what I expected.