Re: Popup Menu
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)) |