[Q] Getting edited cell data before enter key pressed
[Q] Getting edited cell data before enter key pressed
- Subject: [Q] Getting edited cell data before enter key pressed
- From: "Peter.Teeson" <email@hidden>
- Date: Mon, 3 May 2004 13:50:17 -0400
I have my app working almost the way Iwant but there is a little
something I'd like to make cleaner.
At present my tableView has two attributes that are editable. The
problem I run into is this:
(0) when a user double-clicks on an editable cell and makes some
changes but does not leave the field.
i.e. does not press the tab, return, or enter keys.
(1) Instead they press one of the NSButtons that invokes a method in
which I read the content of the cell.
The problem is that the content returned is not what has just been
edited.
At the moment I am getting around that by doing the following:
// For some reason I don't understand if the cell is selected I don't
get the current value in it
[tableView deselectColumn:[tableView selectedColumn]];
[self updateUI];
but I don't feel happy with that.
Is there a better way? E.G. should I be calling textShouldEndEditing?
TIA for your advice.
respect...
Peter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.