• 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
Newbie Question - selecting textFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie Question - selecting textFields


  • Subject: Newbie Question - selecting textFields
  • From: Tom Gray <email@hidden>
  • Date: Tue, 26 Nov 2002 00:24:58 -0500

Hi, and as always, thanks!

I have four NSTextFields in a window. After the user enters a value and hits return or tab, I validate the value. If the value is not valid I want to reselect the text in that NSTextField and make it the current text field.

My problem is, I cannot make it the current text field. The next text field (as set in IB) becomes the current text field after the user hits tab or return.

How do I programatically select one of my NSTextFields to be the "key" text field?

Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
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 Question - selecting textFields
      • From: Hasan Diwan <email@hidden>
    • Re: Newbie Question - selecting textFields
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Complex Types and WebServicesCore
  • Next by Date: initWithCoder and IB
  • Previous by thread: Re: Creating an NSImage from an NSImage
  • Next by thread: Re: Newbie Question - selecting textFields
  • Index(es):
    • Date
    • Thread