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;