You could set a delegate for the NSTableView itself. In that delegate, you would implement the

- (void)controlTextDidEndEditing:(NSNotification *)note

delegate method. Within that method, you should be able to get the information you need. For example,

NSTableView *tableView = [note object];
int colIndex = [tableView editedColumn];
int rowIndex = [tableView editedRow];
NSText *fieldEditor = [tableView currentEditor];

would give you column and row indices and the field editor.

Shlok Datye
Coding Turtle
http://codingturtle.com

On 27.05.2009, at 19:46, Walker Argendeli wrote:

I have a text field cell in a table view, from which I need to be made aware when it ends editing. I thought I would set my Controller class as the text field cell's delegate, and then use NSTextField's delegate method textDidEndEditing:, but realized that the text field cell doesn't seem to have delegate methods? Why is this, and what can I do (other than subclassing) to be informed when editing is finished?

- Walker Argendeli
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to