• 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 Explored 5, radio buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScriptObjC Explored 5, radio buttons


  • Subject: Re: AppleScriptObjC Explored 5, radio buttons
  • From: Shane Stanley <email@hidden>
  • Date: Sun, 24 Sep 2017 12:31:01 +1000

On 24 Sep 2017, at 12:44 am, Jim Weisbin <email@hidden> wrote:
>
> The information I’ve gleaned so far seems to be that if you drag in a bunch
> of radio buttons and bind them to the same property, they should act as a
> button group.

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:


--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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: NSRegular expression question (From: Jim Weisbin <email@hidden>)
 >AppleScriptObjC Explored 5, radio buttons (From: Jim Weisbin <email@hidden>)

  • Prev by Date: Re: AppleScriptObjC Explored 5, radio buttons
  • Next by Date: Re: applescriptobjc-dev Digest, Vol 87, Issue 9
  • Previous by thread: Re: AppleScriptObjC Explored 5, radio buttons
  • Next by thread: Re: applescriptobjc-dev Digest, Vol 87, Issue 9
  • Index(es):
    • Date
    • Thread