Created
June 6, 2009 04:13
-
-
Save chandlerkent/124687 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Related to the issue: http://github.com/280north/cappuccino/issues/#issue/192 | |
// Line 551 of AppKit/CPPopUpButton.j | |
- (void)synchronizeTitleAndSelectedItem | |
{ | |
var item = nil; | |
if ([self pullsDown]) // Do we even need this check? | |
{ | |
var items = [_menu itemArray]; | |
if ([items count] > 0) | |
item = items[0]; // This seems to be the offending line | |
} | |
else | |
item = [self selectedItem]; | |
[super setImage:[item image]]; | |
[super setTitle:[item title]]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment