• 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: Finding the active NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding the active NSTextField


  • Subject: Re: Finding the active NSTextField
  • From: David Catmull <email@hidden>
  • Date: Sun, 12 Sep 2004 22:42:59 -0600

On Sep 12, 2004, at 11:21 AM, Matt Neuburg wrote:
The alternative, as I think you know already, is to poll all the text fields
and ask each of them in turn which has a non-nil currentEditor.

I already tried that without success - IIRC they all returned nil.

I settled on using fieldEditor:forObject:. Since it returns nil only for the cases that I'm trying to check for, I'll just take that as a positive result. Besides, this is a window where the focus should always be in some text field or other, so if a nil result means no text field has focus, that situation should be fixed in any case.

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Finding the active NSTextField (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: New ML List Software
  • Next by Date: Re: Multiple Copies of a window
  • Previous by thread: Re: Finding the active NSTextField
  • Next by thread: Re: Finding the active NSTextField
  • Index(es):
    • Date
    • Thread