Combo Box Reload Menu When Clicked

I have a combo box that loads a list of calendars from iCal. I want the list to be refreshed each time it is popped up. AppleScript Studio had a “will pop up” event that I used. How do I accomplish this using AppleScriptObjC? Notifications? An example, or a link to one, would be excellent.


Probably the easiest way would be to set a delegate, and use the NSComboBoxDelegate method comboBoxWillPopUp:. There’s also a similar notification, if you’d prefer that method.

Thanks Shane,

I don’t know why, but I’m fighting the ObjC thing trying to keep it AppleScript (Studio). Which is strange since I’m pretty familiar with ObjC from my iPhone app programming.

I guess I just don’t like ObjC all that much!