From 178aa454927a4071513cc9bbfe5ae60a27b99015 Mon Sep 17 00:00:00 2001 From: Andrew Madsen Date: Thu, 23 Jun 2022 11:35:40 -0600 Subject: [PATCH] Fix use of Mac-only -isEqualTo: causing build failure for iOS --- Source/MIKMIDICommand.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/MIKMIDICommand.m b/Source/MIKMIDICommand.m index 58150dd..36ee1fd 100644 --- a/Source/MIKMIDICommand.m +++ b/Source/MIKMIDICommand.m @@ -170,7 +170,7 @@ - (BOOL)isEqualToCommand:(MIKMIDICommand *)command // Sort so that deepest subclass hierarchy children come last return [result sortedArrayWithOptions:0 usingComparator:^NSComparisonResult(Class class1, Class class2) { - if ([class1 isEqualTo:class2]) { return NSOrderedSame; } + if ([class1 isEqual:class2]) { return NSOrderedSame; } if ([class1 isSubclassOfClass:class2]) { return NSOrderedDescending; } if ([class2 isSubclassOfClass:class1]) { return NSOrderedAscending; } return NSOrderedAscending;