Skip to content

Commit

Permalink
Fix use of Mac-only -isEqualTo: causing build failure for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
armadsen committed Jun 23, 2022
1 parent ac26527 commit 178aa45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MIKMIDICommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 178aa45

Please sign in to comment.