Re: NSArrayController + NSTableView addObject ends editing

2013-12-25 Thread Quincey Morris
On Dec 24, 2013, at 23:47 , Trygve Inda wrote: > The reloading seem to kill the edit session no matter what I do. FWIW, in the TableViewPlayground sample app, it’s possible to start editing in a cell (in the Complex Table View window) and it stays editable when adding and removing rows around

Re: NSArrayController + NSTableView addObject ends editing

2013-12-24 Thread Trygve Inda
> On Dec 24, 2013, at 11:41 , Trygve Inda wrote: > >> It seems that NSTableView's reloadData called by NSArrayController's >> addObject kills the edit session (without giving my delegate a chance to >> refuse to end the editing). >> >> Is there a way to add items to the table and not end my edit

Re: NSArrayController + NSTableView addObject ends editing

2013-12-24 Thread Quincey Morris
On Dec 24, 2013, at 11:41 , Trygve Inda wrote: > It seems that NSTableView's reloadData called by NSArrayController's > addObject kills the edit session (without giving my delegate a chance to > refuse to end the editing). > > Is there a way to add items to the table and not end my editing? Whi

Re: NSArrayController + NSTableView addObject ends editing

2013-12-24 Thread Trygve Inda
It seems that NSTableView's reloadData called by NSArrayController's addObject kills the edit session (without giving my delegate a chance to refuse to end the editing). Is there a way to add items to the table and not end my editing? Think of the Finder and you are editing a file name, while som

Re: NSArrayController + NSTableView addObject ends editing

2013-12-24 Thread Trygve Inda
> This is not because you are adding a row per se, but because the action is > changing the first responder. If you don't want to allow changing the first > responder you will need to subclass (the table view, cell, or window) to > refuse to resign first responder status under the desired condition

Re: NSArrayController + NSTableView addObject ends editing

2013-12-24 Thread Trygve Inda
> On Nov 14, 2013, at 8:04 AM, Trygve Inda wrote: > >>> On Nov 14, 2013, at 12:54 AM, Trygve Inda wrote: >>> I have a NSTableView backed by an NSArrayController. If I am editing a cell in a row in the tableview and call addObject on the NSArrayController (to add a new row t

Re: NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Keary Suska
On Nov 14, 2013, at 8:04 AM, Trygve Inda wrote: >> On Nov 14, 2013, at 12:54 AM, Trygve Inda wrote: >> >>> I have a NSTableView backed by an NSArrayController. >>> >>> If I am editing a cell in a row in the tableview and call addObject on the >>> NSArrayController (to add a new row to the tabl

Re: NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Trygve Inda
> On Nov 14, 2013, at 12:54 AM, Trygve Inda wrote: > >> I have a NSTableView backed by an NSArrayController. >> >> If I am editing a cell in a row in the tableview and call addObject on the >> NSArrayController (to add a new row to the tableview), my editing session >> for some other row is ende

Re: NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Keary Suska
On Nov 14, 2013, at 12:54 AM, Trygve Inda wrote: > I have a NSTableView backed by an NSArrayController. > > If I am editing a cell in a row in the tableview and call addObject on the > NSArrayController (to add a new row to the tableview), my editing session > for some other row is ended. > > a