That's pretty much what selectsInsertedObjects
means, as I understand it. When the user adds a new item, the new item is selected, replacing the previous selection.
If you want different behavior, you could extend NSArrayController or create your own controller class that uses NSArrayController as a delegate, perhaps based on NSProxy
. I believe you'd need to override add:
to:
- save the current selection
- call the parent
add:
- merge the current selection with the saved selection
- set the selection to the merged selection
However, I don't know enough about NSArrayController internals to say whether this would work.