• 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: Preventing textfield in table from clicking default button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing textfield in table from clicking default button


  • Subject: Re: Preventing textfield in table from clicking default button
  • From: Seth Willits <email@hidden>
  • Date: Sun, 17 Aug 2014 09:04:32 -0700

On Aug 16, 2014, at 9:03 PM, Ken Thomases <email@hidden> wrote:

> The general mechanism is to implement the control delegate method -control:textView:doCommandBySelector: and alter the response to the "insertNewline:" selector.


Thank you. That's exactly the right thing to do. I've used it before for different things, but not often or recently enough to remember it, and I was still futzing around higher in the stack trying to find something there.

For posterity: the textDidBeginEditing/textDidEndEditing method won't work if the text actually doesn't change so don't use that.


--
Seth Willits

_______________________________________________

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


References: 
 >Preventing textfield in table from clicking default button (From: Seth Willits <email@hidden>)
 >Re: Preventing textfield in table from clicking default button (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: NSTableRowView appearance when group rows float - SOLVED
  • Next by Date: Re: NSTableRowView appearance when group rows float - SOLVED
  • Previous by thread: Re: Preventing textfield in table from clicking default button
  • Next by thread: NSOutlineView floating group row question - SOLVED
  • Index(es):
    • Date
    • Thread