• 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: Setting a menu item.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting a menu item.


  • Subject: Re: Setting a menu item.
  • From: Wayne Melrose <email@hidden>
  • Date: Fri, 09 Mar 2012 18:14:46 +0100

I actually want the opposite. I already know the name of the folder I want the menu to select. 

So I want the menu to refresh and then go to a particular menu item. (my new folder name)

Sent from my iPhone

On 09/03/2012, at 5:38 PM, Ric DelMar <email@hidden> wrote:

Popup buttons have several methods for getting the selected item, but I can't tell from your post whether the new folder is the currently selected item after you refresh your list.  If it is, then something like thePopup's titleOfSelectedItem() will get you the string for that item (assuming thePopup is the IBOutlet for your popup button).

Ric

On Fri, Mar 9, 2012 at 6:06 AM, wayne melrose <email@hidden> wrote:
Hi all,

I have an app that has a pop up menu that is populated with a set of folder. Folders are added to this location with the same application. After the new folder has been added, I have no problem refreshing the contents of the popup to contain the new folder, however how does one target the newly created folder. 

ie
How does one target a menu item with ASObjC. I had a solution in applescript studio
set the current menu item to menu item strNewFolderName

Basically I'm after the ASObjC equivalent.

Thanks in advance!  


-------------------------------------------------
wayne melrose
email@hidden

 _______________________________________________
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


 _______________________________________________
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: Setting a menu item.
      • From: Shane Stanley <email@hidden>
References: 
 >Setting a menu item. (From: wayne melrose <email@hidden>)

  • Prev by Date: Setting a menu item.
  • Next by Date: Re: Setting a menu item.
  • Previous by thread: Setting a menu item.
  • Next by thread: Re: Setting a menu item.
  • Index(es):
    • Date
    • Thread