Re NSTableView Cell edit values.

2009-02-25 Thread Peter Hudson
Have you tried calling abortEditing on the table view. I can't remember if it causes a write or not - but in the context where I previously used it I would have needed it to. PH ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: NSTableView Cell edit values.

2009-02-25 Thread Totte Alm
25 feb 2009 kl. 22.29 skrev Corbin Dunn: On Feb 25, 2009, at 12:14 PM, Totte Alm wrote: Hello, 25 feb 2009 kl. 19.58 skrev Corbin Dunn: Make the field editor resign first responder status; if it did successfully do that, then the change was committed. If not, a validation error happene

Re: NSTableView Cell edit values.

2009-02-25 Thread Corbin Dunn
On Feb 25, 2009, at 12:14 PM, Totte Alm wrote: Hello, 25 feb 2009 kl. 19.58 skrev Corbin Dunn: Make the field editor resign first responder status; if it did successfully do that, then the change was committed. If not, a validation error happened. IE: [self.window makeFirstResponder:tab

Re: NSTableView Cell edit values.

2009-02-25 Thread Totte Alm
Hello, 25 feb 2009 kl. 19.58 skrev Corbin Dunn: Make the field editor resign first responder status; if it did successfully do that, then the change was committed. If not, a validation error happened. IE: [self.window makeFirstResponder:tableView]; I might be doing this part wrong This

Re: NSTableView Cell edit values.

2009-02-25 Thread Corbin Dunn
I can tell you for sure that resigning the first responder will make it happen. Maybe something else is wrong in your code. I can't tell without more information. corbin Le Feb 25, 2009 à 11:19 AM, Totte Alm a écrit : hello, thx for the fast answer, but it seems to be more to it. The "sa

Re: NSTableView Cell edit values.

2009-02-25 Thread Totte Alm
hello, thx for the fast answer, but it seems to be more to it. The "save" is done in a IBAction, trigged by a button. I moved all save code from that method to another method, and set an NSTimer to call that mathod, and before that I told the the Window to set the focus. The problem is tha

Re: NSTableView Cell edit values.

2009-02-25 Thread Corbin Dunn
Le Feb 25, 2009 à 10:44 AM, Totte Alm a écrit : Hello cocoa experts, I've stumbled on a problem with a GUI, where the user can edit values using a NSTableView, but if the user types something in a cell, then click the "do stuff" button while the cell is still in editmode, the current cha

NSTableView Cell edit values.

2009-02-25 Thread Totte Alm
Hello cocoa experts, I've stumbled on a problem with a GUI, where the user can edit values using a NSTableView, but if the user types something in a cell, then click the "do stuff" button while the cell is still in editmode, the current change is not propagated back to underlying object.