• 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
Re: Changing NSTableView cell immediately before editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Changing NSTableView cell immediately before editing
      • From: "Paul Sanders" <email@hidden>
References: 
 >Changing NSTableView cell immediately before editing (From: K.Darcy Otto <email@hidden>)
 >Re: Changing NSTableView cell immediately before editing (From: "K. Darcy Otto" <email@hidden>)
 >Re: Changing NSTableView cell immediately before editing (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • Next by Date: where to store this kind of data
  • Previous by thread: Re: Changing NSTableView cell immediately before editing
  • Next by thread: Re: Changing NSTableView cell immediately before editing
  • Index(es):
    • Date
    • Thread