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 11:12:34 -0700
On Sun, 12 Sep 2004 22:42:59 -0600, David Catmull
<email@hidden> said:
>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.
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.
--
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