How can you check a text that has not changed ?
How can you check a text that has not changed ?
- Subject: How can you check a text that has not changed ?
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 5 Jul 2001 17:02:08 +0200
I'm currently facing a little problem with the way text editing is
handled.
I have a NSTableView in which one text column can be edited.
If I add a row to that table,select this row and begin the edition
process for that row, it seems I have no way to check the value of the
text column cell when I end editing the cell without having made any
modifications.
While this seems a weird case, it's a real one.
The code is something like this:
[...]
// Add my row to the data source array
[array_ reload];
[array_ selectRow:newRowIndex byExtendingSelection:NO];
[array_ editColumn:1 row:[array_ selectedRow] withEvent:nil select:YES];
[...]
I have some delegate methods to handle the verification of the text when
edition is finished.
But when no modification is made to the text (addition of a space and a
delete is a modification), well, these delegate methods are not called.
Which seems perfect for 99.99% of the situations. The problem is that
I'm in the 0.01% part.