Added detailed info
I have two Windows.(mainWindow and childWindow.) On the top of the mainWindow
I added childwindow
using WindowController using the following Code, so that the childwindow
is always on the top of mainWindow
.
[[childWindowController window]setLevel:NSModalPanelWindowLevel];
In the ChildWindow I have a tableView,When I doubleclick on this tableView row
I would like to update the tableview in the mainWindow. I used the following api of tableview for editing.
-(void)editColumn:(NSInteger)columnIndex row:(NSInteger)rowIndex withEvent:(NSEvent *)theEvent select:(BOOL)flag
After that I would like edit the contents of the tableview in the mainWindow. I am not able get the keyboard focus in the tableviewcell as the 'childWindow' is always the 'FirstResponder'.
How would I make the tableview in the 'mainWindow' as the FirsResponder
or is there any way to get the 'keyboardfocus' in the tableviecell of the 'mainwindow'
Forgot to call [super textDidEndEditing]
. This solved the issue.