making a table exit cell editing mode

I’m encountering a weird glitch in the table view of my interface:

If user exits the table view while STILL in cell editting mode, then comes back to the table (after it is repopulated), the next time the user enters cell editting mode and then clicks on another cell, the cell on which the user clicks is given the value of the cell that he was just editting. Then each cell he clicks on gets the value of that same cell! Only way to get back to a “normal” situation is to quit the app and come back.

No connections between the script and the table view are enabled. I’m intending to assign values to the table from a list when the user clicks an edit button (showing a panel that the table view is on), and then get the cell values from the table back into the same list when the user clicks a done button. None of the options in interface builder that allow any funny multiple selections or resizing, etc, etc, is on.

Anyway, I don’t know if this is a known bug, but in any case I thought one way around it would to be to make sure when the user clicks done that the cell editting mode is exited. I tried:

set selected rows of thetableview to {}

But it still happens.

How to make sure that no cells in the table are being actively editted?

I’ve had the same problem and have had limited success using this:

set the_table to table view 1 of scroll view 1 of window "main"
try
	call method "reloadData" of the_table
end try

Jon

jonn,

thanks a lot, that’s exactly what i needed. i do think it’s a bug in xcode/ib tho.