• 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
Amatuer problem with NSTextField and NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Amatuer problem with NSTextField and NSButton


  • Subject: Amatuer problem with NSTextField and NSButton
  • From: Neil Williams <email@hidden>
  • Date: Sat, 25 Jun 2005 11:32:51 +0100

Hi All

I feel like an amatuer asking this but I have experimented and searched the manuals without finding a solution.

My application uses a user name entry window with a NSTextField and a NSButton. The window is initially displayed with the name of the current user in the text field. The user can then click the OK button or edit the name then click the OK button.

The problem is getting the desired action from the return key. As it stands, two presses of the return key is equivalent to a click of the button.

Can anyone give me a clue about how to set it up so that only one return key press is required? I am sure this is a trivial thing but for some reason I just can't get the desired effect.

Best regards

Neil Williams

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Calling CFM Code (From: Dair Grant <email@hidden>)
 >Re: Calling CFM Code (From: "Nick D'Amato" <email@hidden>)
 >Re: Calling CFM Code (From: Neil Williams <email@hidden>)
 >Re: Calling CFM Code (From: Douglas Davidson <email@hidden>)
 >Re: Calling CFM Code (From: Neil Williams <email@hidden>)

  • Prev by Date: Re: Calling CFM Code
  • Next by Date: Re: Class clusters - infinite loop?
  • Previous by thread: Re: Calling CFM Code
  • Next by thread: Re: Calling CFM Code
  • Index(es):
    • Date
    • Thread