Re: Changing NSTableView cell immediately before editing
Re: Changing NSTableView cell immediately before editing
- Subject: Re: Changing NSTableView cell immediately before editing
- From: "K. Darcy Otto" <email@hidden>
- Date: Tue, 3 Mar 2009 13:38:28 -0800
Thanks for this. I think this would solve part of the problem (when
it was clicked on by the user), but not if the text edit field were
selected in some way other than a mouse click. But you gave me an
idea: what about subclassing NSTextView, so that when the field editor
is called, the change from red to black is triggered? Does anyone
know what method is called when the field editor is displayed to edit
the cell of an NSTableView (I dug around in the docs a bit, but I'm
couldn't find it)?
On 3-Mar-09, at 7:37 AM, Paul Sanders wrote:
I think what I need is a "controlTextMightBeginEditing" instead of
"controlTextDidBeginEditing". ;-)
Override -mouseDown, call [super], then check the first responder?
If it's
a text edit field, fade to black. Something like that anyway, I
know not
precisely of what I speak.
_______________________________________________
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