Trying to read selection states
Trying to read selection states
- Subject: Trying to read selection states
- From: John Kundert-Gibbs <email@hidden>
- Date: Fri, 3 May 2002 11:01:39 -0400
Hi, all,
and sorry for such a newbie question, but the Objective-C documentation
in the SDK is not searchable(!)
I'm working on learning Objective-C and it's hooks to the GUI, so I
wrote a stupid little program that has two fields and a button. You
enter either Fahrenheit or Centigrade temperatures in one box, hit the
button, and the other box pops up the converted temperature. Simple
enough and working fine _except_ that I can't figure out the call
(method?) that gives me information on which field was highlighted when
the "convert" button was pressed. In other words, if I enter a
Fahrenheit temp (so the FahrenheitField is selected), I want my program
to know that so it'll do the correct conversion. From a tutorial I saw
that you can use [fahrenheitField selectText:self] to force that field
to be selected, but how do you read whether that field is selected
instead?
Hopefully this is just an easy call, like the one above, and returns a 1
or 0 for its state.
I appreciate any help here, and definitely any pointers on where I might
look for a more complete (and searchable!) reference set.
Thanks!
John Kundert-Gibbs, Director
Digital Production Arts
404 Edwards Hall
Clemson University
Clemson, SC 29634
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.