Re: Preventing textfield in table from clicking default button
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