On Aug 16, 2014, at 9:03 PM, Ken Thomases <k...@codeweavers.com> 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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to