• 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
How to get a message when RETURN is pressed in a NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get a message when RETURN is pressed in a NSTextField


  • Subject: How to get a message when RETURN is pressed in a NSTextField
  • From: Markus Spoettl <email@hidden>
  • Date: Mon, 23 Jun 2008 20:38:28 -0700

Hello List,

this is almost too embarrassing to ask but I can't for the life of me figure out how to get notified (on a NSWindowController class) when RETURN was pressed in a certain NSTextField sitting in on the window of that controller.

I get -insertNewLine: when return is pressed on anything but the text field. For the text field it's not invoked, so there must be another message. Which? keyDown or keyUp is not called.

I'm using Xcode 3.0 on OS X 10.5.3

Thanks for your help!

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

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: How to get a message when RETURN is pressed in a NSTextField
      • From: Kenny Leung <email@hidden>
  • Prev by Date: Re: Cocoa Text System: How to determine the caret position?
  • Next by Date: Re: How to get a message when RETURN is pressed in a NSTextField
  • Previous by thread: Re: CoreData pagination
  • Next by thread: Re: How to get a message when RETURN is pressed in a NSTextField
  • Index(es):
    • Date
    • Thread