* Source/NSPopUpButton.m (-selectedTag): Return the tag of the selected item.

Patch by Douglas Simons <doug.simons@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28617 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-09-06 21:38:15 +00:00
parent 3b1eb6048a
commit fd8ebd6a78
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2009-09-06 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPopUpButton.m (-selectedTag): Return the tag of the
selected item.
Patch by Douglas Simons <doug.simons@testplant.com>.
2009-09-04 Nicola <nicola.pero@meta-innovation.com>
* Images/GNUmakefile: Rewritten using the standard

View file

@ -251,6 +251,14 @@ this to return nil to indicate that we have no context menu.
return [_cell indexOfSelectedItem];
}
/**<p>Returns the tag of the selected item</p>
<p>See Also: [NSPopUpButtonCell-indexOfSelectedItem]</p>
*/
- (int) selectedTag
{
return [[_cell selectedItem] tag];
}
- (void) selectItem: (id <NSMenuItem>)anObject
{
[self willChangeValueForKey: NSSelectedIndexBinding];