cocoa - How to auto-select next row after deleting current row by core data context? -


i using core data manage objects , using nstableview display objects. table columns binded objects' properties through nsarraycontroller.

when users click delete button, selected objects in nstableview deleted. remained objects left in nstableview.

this works smoothly. after deleting selected rows, nstableview not select row automatically. result, users have type once arrow key or use mouse select new row.

so question is: how make nstableview select next or previous row after selected rows deleted?

of course, select left row programmatically after deleting. wondering whether there more elegant way achieve this.

thanks


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -