• 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: Shane Stanley <email@hidden>
  • Date: Tue, 11 Jan 2011 08:59:00 +1100
  • Thread-topic: textShouldEndEditing or textDidEndEditing

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/>


 _______________________________________________
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

  • Follow-Ups:
    • Re: textShouldEndEditing or textDidEndEditing
      • From: Deivy Petrescu <email@hidden>
References: 
 >textShouldEndEditing or textDidEndEditing (From: Deivy Petrescu <email@hidden>)

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