From 003dcface07d945559cfe477ac3999e1a0fd6c4f Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Mon, 13 Dec 2010 22:11:04 +0100 Subject: [PATCH] make selectedTag accessor public again This reverts commit cfee75b6e9bd8d469008e9851c1e6078bd6297c5. --- AppKit/CPPopUpButton.j | 2 +- Tests/AppKit/CPPopUpButtonTest.j | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPPopUpButton.j b/AppKit/CPPopUpButton.j index 58c3c53ac..6c5b24ec2 100644 --- a/AppKit/CPPopUpButton.j +++ b/AppKit/CPPopUpButton.j @@ -241,7 +241,7 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down"); /*! @ignore */ -- (int)_selectedTag +- (int)selectedTag { return [[self selectedItem] tag]; } diff --git a/Tests/AppKit/CPPopUpButtonTest.j b/Tests/AppKit/CPPopUpButtonTest.j index 90813c18e..7ab2e8471 100644 --- a/Tests/AppKit/CPPopUpButtonTest.j +++ b/Tests/AppKit/CPPopUpButtonTest.j @@ -40,7 +40,7 @@ withKeyPath:@"weight" options:nil]; - [self assert:20 equals:[button _selectedTag]]; + [self assert:20 equals:[button selectedTag]]; [button selectItemAtIndex:1]; // simulate selection by the user (this fails because we don't reverse set the value)