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.