From 781d8ada602172feece7eff921c7e023c3c91d81 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 28 Feb 2022 10:33:17 -0500 Subject: [PATCH] midi - representedObject can be reset in some circumstances. (reloading from nib?) use title which seems more permanent. --- Ample/TableCellView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ample/TableCellView.m b/Ample/TableCellView.m index eeeaaa6..e55e295 100644 --- a/Ample/TableCellView.m +++ b/Ample/TableCellView.m @@ -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;