• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting notification when NSTextFieldCell end editing in a table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting notification when NSTextFieldCell end editing in a table view
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSAllocateCollectable memory allocation problem
  • Next by Date: Re: Getting notification when NSTextFieldCell end editing in a table view
  • Previous by thread: Re: NSAllocateCollectable memory allocation problem
  • Next by thread: Re: Getting notification when NSTextFieldCell end editing in a table view
  • Index(es):
    • Date
    • Thread