Re: Return and Enter keys in NSTextView
Re: Return and Enter keys in NSTextView
- Subject: Re: Return and Enter keys in NSTextView
- From: Richard Schreyer <email@hidden>
- Date: Thu, 30 Aug 2001 12:53:44 -0700
You could use textView:doCommandBySelector: in this case too, looking
for insertNewline:., without having to worry about the currentEvent.
When a textview is set up as a field editor, insertNewline: just ends
editing and resigns first responder.
Ah, I saw that while implementing it. I didn't end up needing to use
textDidEndEditing anywhere.
Everything is working fine now, without the NSTextView subclasses.
Thanks to everyone who helped.
Richard Schreyer