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).

highlight

if understand correctly, every time add item nsarraycontroller, gets selected in nstableview. have selected preserveselection , deselected avoidemptyselection of nsarraycontroller? have uncheck "selectinsertedobjects".

enter image description here


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -