Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Question



First make sure you give your popup menu a name (in my case "myPopup") in Interface Builder.
Also give your "go" button an "On Clicked" event handler.

In Xcode:
on clicked theObject
if title of current menu item of popup button "myPopup" of window of theObject is "actionOne" then
-- Action 1
else if title of current menu item of popup button "myPopup" of window of theObject is "actionTwo" then
-- Action 2
else
-- Insert as many else ifs as you want
end if
end clicked

Cheers,
Jasper.


On Mar 19, 2005, at 06:45 PM, Dean Shavit wrote:

Hi,

I'm writing a little app and would like someone to share a snippet of code
that would allow someone to choose an item from a popup menu then execute it
with a "go" button.

Cam anyone share a pointer or example?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Newbie Question (From: Dean Shavit <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.