• 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: Highlighting a text field...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlighting a text field...


  • Subject: Re: Highlighting a text field...
  • From: Roland Torres <email@hidden>
  • Date: Wed, 11 Jan 2006 17:23:21 -0800


On Jan 11, 2006, at 5:04 PM, email@hidden wrote:

This is probably really easy but I can't figure it out.
I have a form with lots of text fields and when the app is started
the first text field is selected for text entry. How do I get a different
field to be selected i.e. the last text field so I can type in it first?

You want to change the "first responder". Do this either in Interface Builder,
or you can do it programmatically from the window that owns the text field:


 - (BOOL)makeFirstResponder:(NSResponder *)aResponder

...where "aResponder" is the text field you'd like to be highlighted.

Roland


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Highlighting a text field... (From: "email@hidden" <email@hidden>)

  • Prev by Date: Highlighting a text field...
  • Next by Date: Re: OTHER_CFLAGS
  • Previous by thread: Highlighting a text field...
  • Next by thread: unkown symbol problem (semi-OT?)
  • Index(es):
    • Date
    • Thread