• 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: Return and Enter keys in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Java Swing and Interface Builder
  • Next by Date: Re: NSCursor and 1 bit mask ?
  • Previous by thread: RE: Return and Enter keys in NSTextView
  • Next by thread: PPC Assembly in Frameworks
  • Index(es):
    • Date
    • Thread