• 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: Popup Menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Popup Menu


  • Subject: Re: Popup Menu
  • From: Diggory Laycock <email@hidden>
  • Date: Fri, 11 Jan 2002 12:21:57 +0000

open the "classes" tab and set it to "flat, all classes" then scroll to NSPopUpButton,
then click on the book icon.

selectedItem

- (id <NSMenuItem>)selectedItem

Returns the item last selected by the user (the item that was highlighted
when the user released the mouse button). If there is no selected item, this
method returns nil. It is possible for a pull-down menu's selected item to
be its first item.


On Friday, January 11, 2002, at 06:10 am, Ben Mackin wrote:

> I have created a popup menu in Interface Builder, and now want to get
> information out of it. I searched Apples website for NSPopUpButton
> (which I got from IB), but nothing came up. I tried a serach for just
> popup, but got a lot of carbon references.
>
> All I want to know is how do I find out which option has been selected
> (what is returned, the menu item number or the menu's name as a string?),
> and how can I set which menu item is choosen.
>
> Chances are I just have not looked hard enough on Apple's site.
>
> Thanks,
> Ben
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
>
Diggory Laycock - MonkeyFood.com

Tel: +44 7050 124080
(07050 124080 from UK)


References: 
 >Popup Menu (From: email@hidden (Ben Mackin))

  • Prev by Date: Re: Popup Menu
  • Next by Date: Where Are Those Arrows?
  • Previous by thread: Re: Popup Menu
  • Next by thread: Re: Popup Menu
  • Index(es):
    • Date
    • Thread