Re: NSTableView Cell edit values.
Re: NSTableView Cell edit values.
- Subject: Re: NSTableView Cell edit values.
- From: Corbin Dunn <email@hidden>
- Date: Wed, 25 Feb 2009 10:58:04 -0800
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 change is not propagated back to underlying
object.
So, the question:
How can I tell the NSTableView to "propagate" current changes, i.e.
stop being in edit mode?
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];
.corbin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden