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

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


  • Subject: Re: How to get a message when RETURN is pressed in a NSTextField
  • From: "Patrick Burleson" <email@hidden>
  • Date: Thu, 26 Jun 2008 17:53:56 -0500

On Tue, Jun 24, 2008 at 1:41 AM, Markus Spoettl
<email@hidden> wrote:
> Hi Kenny,
>
> Thanks for your suggestion. Unfortunately that doesn't work because I cannot
> differentiate between the multiple possibilities of what makes the action
> fire. The NSTextField action is sent not only for pressing enter but also
> when the control looses firstResponder status.

If I remember correctly, in IB you can set a NSTextField to only fire
its action on "Enter" It's on the Info panel in the inspector for a
NSTextField.

Maybe that will get it where you want?

Patrick
_______________________________________________

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

References: 
 >How to get a message when RETURN is pressed in a NSTextField (From: Markus Spoettl <email@hidden>)
 >Re: How to get a message when RETURN is pressed in a NSTextField (From: Kenny Leung <email@hidden>)
 >Re: How to get a message when RETURN is pressed in a NSTextField (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Leak in NSSavePanel
  • Next by Date: NSArchiver question?
  • Previous by thread: Re: How to get a message when RETURN is pressed in a NSTextField
  • Next by thread: NSPredicateEditorRowTemplate
  • Index(es):
    • Date
    • Thread