Getting notification when NSTextFieldCell end editing in a table view
Getting notification when NSTextFieldCell end editing in a table view
- Subject: Getting notification when NSTextFieldCell end editing in a table view
- From: Gustavo Pizano <email@hidden>
- Date: Mon, 21 Jun 2010 15:10:55 +0200
Hello all.
I think this has very simple question, yet I hadn't figure it out.
I need to change the textColor of the NXTextFieldCell when the user its editing, and when the user finish editing put back the original color.
I have this in the NSTableViewDelegate method:
- (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex{
NSTextFieldCell * cell = (NSTextFieldCell *)[aTableColumn dataCellForRow:rowIndex];
[cell setTextColor:[NSColor blackColor]];
return YES;
}
but how do I get the notification when the cell end editing?, I was checking the NSControlTextEditingDelegate, but I can't assign any delegate to the cell but to its view, so.... :S Im kinda lost here...
any suggestions?
Thx
Gustavo
_______________________________________________
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