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)