objective c - NSArrayController automatically selects all new items on `add:` action -
i have nsarraycontroller
bound nstableview
. table view has standard + / -
buttons.
when press +
button triggers add:
action of nsarraycontroller
new item in list automatically selected, prevents user editing text in nstextfield
inside of cell.
in ib selection property of table view multiple
not checked multiple-selection shouldn’t possible , not possible “by hand”.
i had change highlight
none
work around problem no longer able delete individual columns, kind of fine in case, wondering how solved, ideally without implementing delegate (i prefer hook stuff bindings such standard case).
if understand correctly, every time add item nsarraycontroller, gets selected in nstableview. have selected preserveselection , deselected avoidemptyselection of nsarraycontroller? have uncheck "selectinsertedobjects".
Comments
Post a Comment