Skip to content

Instantly share code, notes, and snippets.

@chandlerkent
Created June 6, 2009 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chandlerkent/124687 to your computer and use it in GitHub Desktop.
Save chandlerkent/124687 to your computer and use it in GitHub Desktop.
// 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