Re: NSTextFieldCell Delegate?
Re: NSTextFieldCell Delegate?
- Subject: Re: NSTextFieldCell Delegate?
- From: Shlok Datye <email@hidden>
- Date: Wed, 27 May 2009 20:50:26 +0000
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 (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