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 (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