Re: textShouldEndEditing or textDidEndEditing
Re: textShouldEndEditing or textDidEndEditing
- Subject: Re: textShouldEndEditing or textDidEndEditing
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 11 Jan 2011 08:39:53 -0500
On Jan 10, 2011, at 16:59 , Shane Stanley wrote:
> On 11/1/11 8:29 AM, "Deivy Petrescu" <email@hidden> wrote:
>
>> This posting causes the receiver’s delegate to receive
>> a controlTextDidEndEditing: message.
>
> So this is the key sentence. Make your script a delegate of the text field,
> and implement the controlTextDidEndEditing: method, something like this:
>
> on controlTextDidEndEditing_(notif)
> log notif's object()'s stringValue()
> end controlTextDidEndEditing_
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>
>
Thanks Shane!
I actually learned something new.
I do not believe I had understood that concept before.
I thought that by making the script the delegate it would be the "delegate"
of everything in the UI. I see it is not.
Once I understood that, I got it working.
Thank you, this alone was worth the price of admission....
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden