diff options
Diffstat (limited to 'src/objc/utils/MCOIndexSet.mm')
-rw-r--r-- | src/objc/utils/MCOIndexSet.mm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/objc/utils/MCOIndexSet.mm b/src/objc/utils/MCOIndexSet.mm index b944b38b..3f113073 100644 --- a/src/objc/utils/MCOIndexSet.mm +++ b/src/objc/utils/MCOIndexSet.mm @@ -87,6 +87,15 @@ MCO_SYNTHESIZE_NSCODING return indexSet; } +- (BOOL) isEqual:(id)other +{ + if (other == nil) { + return NO; + } + MCOIndexSet * otherIndexSet = other; + return _indexSet->isEqual(otherIndexSet->_indexSet); +} + - (NSString *) description { return MCO_OBJC_BRIDGE_GET(description); |