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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]