mirror of
https://github.com/ksherlock/ample.git
synced 2024-11-05 01:05:29 +00:00
midi - representedObject can be reset in some circumstances. (reloading from nib?) use title which seems more permanent.
This commit is contained in:
parent
d258fd2a48
commit
781d8ada60
@ -165,7 +165,7 @@ static NSString *kNone = @"—None—";
|
||||
|
||||
NSArray *array = _category == kIndexMidiIn ? [mgr sources] : [mgr destinations];
|
||||
|
||||
NSString *selected = [[_popUpButton selectedItem] representedObject];
|
||||
NSString *selected = [[_popUpButton selectedItem] title];
|
||||
[menu removeAllItems];
|
||||
int selectedIndex = -1;
|
||||
NSMenuItem *item;
|
||||
|
Loading…
Reference in New Issue
Block a user