• 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: What can I use for dynamic menu please?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What can I use for dynamic menu please?


  • Subject: Re: What can I use for dynamic menu please?
  • From: Brian Christmas <email@hidden>
  • Date: Wed, 10 Aug 2011 18:36:16 +1000


G'day Shane

Not to worry, we're not fretting over the eMailed link; it's happened to me once before, and then when Kagi's clock rolled over to todays Aussie date, I got the eMail. Might be the same situation.

Now, for the life of me I can't figure out how to make a popup button into multiple selection. It's only letting me pick one item at a time. I tried the code below, but selectItem_("Sunday") does nothing.

Am I missing something (well, obviously I am).

Regards

Santa


on setTheDays_(sender)
         set typeFlag to  theTypeStore's titleOfSelectedItem()  
         if typeFlag as text is in {"Once","Monthly","Yearly"} then
            theDayStore's removeAllItems()
            theDayStore's addItemsWithTitles_({"Not Applicable"})
         else
            set tempString to {"Every Day","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"}
            set typeFlagDay to theDayStore's titleOfSelectedItem()
            if typeFlagDay as text is in { "", "Not Applicable"} then set typeFlagDay to item 1 of tempString as text
            theDayStore's removeAllItems()
            theDayStore's addItemsWithTitles_(tempstring)
            theDayStore's selectItem_("Monday")
            theDayStore's selectItem_("Friday")
            theDayStore's selectItem_("Sunday")
            theDayStore's selectItemWithTitle_(typeFlagDay)-- Even with this removed, the above statements do  not work
         end if
         my setTheMonths_(sender)
    end SetTheDays_





On 10/08/2011, at 3:12 PM, Shane Stanley wrote:

First, there seems to be a hitch with sending out the emails with the links. My apologies, but at this stage it's beyond my control (and time-zone).

An NSPopover might be what you want, but they are 10.7-only. You could probably also use a child window.

But I think the easiest would be either a popup (or dropdown) menu, or perhaps a segmented control.


 _______________________________________________
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: What can I use for dynamic menu please?
      • From: Wayne Melrose <email@hidden>
References: 
 >What can I use for dynamic menu please? (From: Brian Christmas <email@hidden>)
 >Re: What can I use for dynamic menu please? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: What can I use for dynamic menu please?
  • Next by Date: Re: What can I use for dynamic menu please?
  • Previous by thread: Re: What can I use for dynamic menu please?
  • Next by thread: Re: What can I use for dynamic menu please?
  • Index(es):
    • Date
    • Thread