mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:40:37 +00:00
* 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:
parent
3b1eb6048a
commit
fd8ebd6a78
2 changed files with 14 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue