Re: Finding the active NSTextField
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