• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: textShouldEndEditing or textDidEndEditing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: textShouldEndEditing or textDidEndEditing (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Can't invoke NSApplication's terminate
  • Next by Date: Re: Can't invoke NSApplication's terminate
  • Previous by thread: Re: textShouldEndEditing or textDidEndEditing
  • Next by thread: Re: Can't invoke NSApplication's terminate
  • Index(es):
    • Date
    • Thread