Re: Finding the active NSTextField
Re: Finding the active NSTextField
- Subject: Re: Finding the active NSTextField
- From: David Catmull <email@hidden>
- Date: Tue, 14 Sep 2004 12:54:53 -0600
On Sep 14, 2004, at 12:12 PM, Matt Neuburg wrote:
I need hardly say that this makes no sense to me. Programming by
guesswork
is not programming. I suggest that either you believe what these
functions
are telling you (i.e. it's nil because no text field has a field
editor) or
you figure out an approach that works. m.
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.
It's not guesswork. It's just that, for whatever reason, one situation
that I want to check for (text fields A or B being focused) gives me
instead the result for a different situation (no text field is
focused), but for both situations I want to do the same thing (focus
text field C). It doesn't always work out this way, but for this case
I've found an effective solution.
--
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