• 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: applescriptobjc-dev Digest, Vol 87, Issue 9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescriptobjc-dev Digest, Vol 87, Issue 9


  • Subject: Re: applescriptobjc-dev Digest, Vol 87, Issue 9
  • From: Jim Weisbin <email@hidden>
  • Date: Mon, 25 Sep 2017 08:33:07 -0400

This works. I just had to change to "set theFruit to sender’s title()", and
connect each button to the appdelegate’s -clickedButton

Thanks all!

> On Sep 24, 2017, at 3:00 PM, Shane Stanley <email@hidden> wrote
>
> You can't use bindings like that without a matrix, as far as I can tell. As
> Phil said, you need to have them call the same action handler, and belong to
> the same subview -- probably best to drag out a custom view for that purpose.
>
> Then your handler is something like:
>
>       on clickedButton:sender
>               set theTitle to sender's title()
>               -- whatever
>               display dialog theTitle as text
>       end clickedButton:

Jim Weisbin | C.T.O. | Human | Post Human | 27 West 20th Street | Suite 801 |
New York, NY | 10011 |  (212) 352-0211 |  (917) 375-2272 | 2046 Broadway |
Santa Monica, CA | 90404 |  (310) 264-0211 telephone

 _______________________________________________
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

  • Prev by Date: Re: AppleScriptObjC Explored 5, radio buttons
  • Next by Date: High Sierra AppleScriptObjC bugs
  • Previous by thread: Re: AppleScriptObjC Explored 5, radio buttons
  • Next by thread: High Sierra AppleScriptObjC bugs
  • Index(es):
    • Date
    • Thread