• 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: makeFirstResponder and Enter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: makeFirstResponder and Enter


  • Subject: Re: makeFirstResponder and Enter
  • From: Adam Ruth <email@hidden>
  • Date: Sat, 1 Jan 2005 12:36:29 -0700

Fantastic, thanks, did the trick. I should have thought of that, that's the same thing I'd do on a web page with Javascript with a similar problem.

Adam

On Jan 1, 2005, at 9:51 AM, Matt Neuburg wrote:

On Fri, 31 Dec 2004 17:28:56 -0700, Adam Ruth <email@hidden> said:
I have a window that has two text fields on it and a button with a key
equivalent of Enter.  When the user clicks the button, the window is
validated and if either of the text fields don't pass validation a
notice is popped up and then focus is put to the offending text field
with makeFirstResponder.  The only problem is if the user is in the
other text field and they press Enter then focus moves to the other
text field momentarily (what I want) but then returns to the original
field, presumably to finish processing the Enter event.  I'm not sure
how to make focus stay where I want it to.

<http://www.cocoabuilder.com/archive/message/2004/9/29/118534>

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>




_______________________________________________ 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: makeFirstResponder and Enter (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Accurate decimal numbers?
  • Next by Date: EPS to NSBezierPath
  • Previous by thread: Re: makeFirstResponder and Enter
  • Next by thread: Re: Accurate decimal numbers?
  • Index(es):
    • Date
    • Thread