reading NSTableView cell edits before user tabs or enters
reading NSTableView cell edits before user tabs or enters
- Subject: reading NSTableView cell edits before user tabs or enters
- From: Randy Hulett <email@hidden>
- Date: Fri, 16 Nov 2007 07:43:25 -0800 (PST)
I am using an NSTableview and would like to better trap table cell edits as they happen.
1) I would like to be able to monitor changes to manage updateChangeCount during table cell editing.
2) If the user presses command-S to save, I would like to report the current cell edits/contents to the data source for saving.
I can trap THAT A CELL HAS CHANGED with controlTextDidChange. The problem is that I don't know the mechanism for reading active cell edits before the user tabs or enters (i.e. the content of the changes) and they are reported via:
- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
There must be some way to provide a row and column to the NSTableView and then to see NSCell edits before they are completed/implemented, right?
Thanks for your help.
Randy
____________________________________________________________________________________
Get easy, one-click access to your favorites.
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs
_______________________________________________
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