Re: Finding the active NSTextField
Re: Finding the active NSTextField
- Subject: Re: Finding the active NSTextField
- From: Matt Neuburg <email@hidden>
- Date: Tue, 14 Sep 2004 16:09:35 -0700
On Tue, 14 Sep 2004 12:54:53 -0600, David Catmull
<email@hidden> said:
>I'm trying to determine the focused text field in order to decide
>whether to focus a particular other text field. If nil really means
>that no text field is active, then that's also a good time to change
>the focus, so it works either way. That's why I'm comfortable with this
>approach.
Your comfort is not what's at issue. What's at issue is the formula for
finding the active text field:
[[theWindow fieldEditor:YES forObject:nil] delegate]
You said that you were getting nil even though one of your three text fields
was active, and that therefore the formula was wrong. Now, is it wrong or
not? m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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