• 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: NSTextField to be selected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField to be selected


  • Subject: Re: NSTextField to be selected
  • From: "Sean Liong" <email@hidden>
  • Date: Thu, 30 Oct 2003 10:53:40 +0000

Hi,

Actually the use of selectText: & display is good enough to select/highlite the NSTextField. Just that I need to be very clear when & where is the right place to place the functions. But is joar's comment somehow kick me into thinking the alternative way.

Thanks,
sean

From: j o a r <email@hidden>
To: "Sean Liong" <email@hidden>
CC: email@hidden
Subject: Re: NSTextField to be selected
Date: Thu, 30 Oct 2003 09:11:48 +0100

On 2003-10-30, at 08.29, Sean Liong wrote:

Any hints or advices from all the experts for the below questions?

Experts? That would be me! ;)

Try:

[myWindow makeFirstResponder: myTextField];

You should probably also make sure that the text fields in question is the "initial first responder" for the window. This can be done both in IB and in code.

j o a r
_______________________________________________
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.

_________________________________________________________________
Using a handphone prepaid card? Reload your credit online! http://www.msn.com.my/reloadredir/default.asp
_______________________________________________
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.
  • Prev by Date: Outline View Table Column problem
  • Next by Date: RE: Sample code for a Finder hack - "haxies"
  • Previous by thread: Re: NSTextField to be selected
  • Next by thread: Re: Can I use NSUserDefaultsController and NSObjectController
  • Index(es):
    • Date
    • Thread