• 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
Trying to read selection states
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Quartz 2d drawing problems
  • Next by Date: Re: rightMouseDown: (NSEvent) theEvent
  • Previous by thread: Re: Quartz 2d drawing problems
  • Next by thread: Re: Trying to read selection states
  • Index(es):
    • Date
    • Thread