Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NSTextField selecting

NSTextField selecting
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: Texas
Status: Offline
Reply With Quote
Aug 1, 2004, 05:31 PM
 
Ok, I have been searching for a bit and I need to know how to select a NSTextField cell.... Anyone know off the top of their head?
     
Professional Poster
Join Date: Sep 2000
Location: Texas
Status: Offline
Reply With Quote
Aug 2, 2004, 03:26 PM
 
anyone?
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Aug 2, 2004, 04:31 PM
 
Could you be more specific?
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Aug 2, 2004, 05:15 PM
 
Originally posted by djohnson:
Ok, I have been searching for a bit and I need to know how to select a NSTextField cell.... Anyone know off the top of their head?
So when you say an "NSTextField cell", do you mean an NSTextField or an NSCell? Or something else?

And when you say "select" do you mean to start editing programatically, or allow the user to tab to it? Or something else?
     
Professional Poster
Join Date: Sep 2000
Location: Texas
Status: Offline
Reply With Quote
Aug 2, 2004, 07:29 PM
 
Ok lets see if this makes more sense. After a user presses ok in a window, I need it to select a specific NSTextField. It will then place the cursor in that field.
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Jan 17, 2005, 10:08 PM
 
Originally posted by djohnson:
Ok lets see if this makes more sense. After a user presses ok in a window, I need it to select a specific NSTextField. It will then place the cursor in that field.
I know I'm bringing up an old thread here, but I have an answer: What you are looking for is the NSView method -makeFirstResponder:(NSResponder *)

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2