• 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: [newbie] /r invoking button instead of going to textfield?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie] /r invoking button instead of going to textfield?


  • Subject: Re: [newbie] /r invoking button instead of going to textfield?
  • From: Ondra Cada <email@hidden>
  • Date: Sun, 15 Sep 2002 22:28:37 +0200

On Sunday, September 15, 2002, at 10:18 , Ando Sonenblick wrote:

I have a window with an NSTextField and an NSButton in it. The button is
set to have return activate it. However, with the NSTextField as the first
responder it "eats" any return key presses.

Just link the text field target to the button's performClick:

So how do I make it so that the return key activates the button no matter
who else may be the first responder?

Generally it should not be done of course: presume the FR was a text view,
and the user then could not finish a line? Whew!
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [newbie] /r invoking button instead of going to textfield?
      • From: Ando Sonenblick <email@hidden>
References: 
 >[newbie] /r invoking button instead of going to textfield? (From: Ando Sonenblick <email@hidden>)

  • Prev by Date: [newbie] /r invoking button instead of going to textfield?
  • Next by Date: Re: Help with Help
  • Previous by thread: [newbie] /r invoking button instead of going to textfield?
  • Next by thread: Re: [newbie] /r invoking button instead of going to textfield?
  • Index(es):
    • Date
    • Thread