mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 04:50:54 +00:00
Implemented selectedTag to work correctly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/testplant_1@28549 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
959f37211d
commit
9d92f03d0a
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2009-08-26 Douglas Simons <doug.simons@testplant.com>
|
||||||
|
|
||||||
|
* Source/NSPopUpButton.m: Implemented selectedTag to work correctly.
|
||||||
|
|
||||||
2009-08-20 Douglas Simons <doug.simons@testplant.com>
|
2009-08-20 Douglas Simons <doug.simons@testplant.com>
|
||||||
|
|
||||||
* Source/GSLayoutManager.m: Fix bug with glyphRangeForCharacterRange:actualCharacterRange:
|
* Source/GSLayoutManager.m: Fix bug with glyphRangeForCharacterRange:actualCharacterRange:
|
||||||
|
|
|
@ -251,6 +251,14 @@ this to return nil to indicate that we have no context menu.
|
||||||
return [_cell indexOfSelectedItem];
|
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
|
- (void) selectItem: (id <NSMenuItem>)anObject
|
||||||
{
|
{
|
||||||
[self willChangeValueForKey: NSSelectedIndexBinding];
|
[self willChangeValueForKey: NSSelectedIndexBinding];
|
||||||
|
|
Loading…
Reference in a new issue