• 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
Distinguishing between return and enter in NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distinguishing between return and enter in NSTextField


  • Subject: Distinguishing between return and enter in NSTextField
  • From: Rick Mann <email@hidden>
  • Date: Thu, 3 Sep 2009 10:54:26 -0700

Hi. I'd like to insert a new line when the user presses return in an NSTextField, but take completely custom action when they press Enter. Is the only way to do this to subclass NSTextField and override the NSResponder keyDown: method?

TIA,
Rick

_______________________________________________

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


  • Follow-Ups:
    • Re: Distinguishing between return and enter in NSTextField
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Handling NSApplicationDefined events
  • Next by Date: Re: Getting a StringPtr from Gestalt on 64-bit
  • Previous by thread: Re: change in launch services binding behavior?
  • Next by thread: Re: Distinguishing between return and enter in NSTextField
  • Index(es):
    • Date
    • Thread