Commit e5d24a48 by Brent Gulanowski

Fix for issue with duplicate method naming in category.

The same method is found in the MediaPlayer framework.
parent c570929d
No related merge requests found
...@@ -42,7 +42,7 @@ static NSString * const ResearchEntity = @"Researcher"; ...@@ -42,7 +42,7 @@ static NSString * const ResearchEntity = @"Researcher";
static NSString * const RootEntity = @"Root"; static NSString * const RootEntity = @"Root";
@interface NSIndexSet (BUYTestAdditions) @interface NSIndexSet (BUYTestAdditions)
+ (instancetype)indexSetWithIndexes:(NSArray *)indexes; + (instancetype)buy_indexSetWithIndexes:(NSArray *)indexes;
@end @end
@interface BUYCoreDataModelAdditionsTests : XCTestCase @interface BUYCoreDataModelAdditionsTests : XCTestCase
...@@ -264,7 +264,7 @@ static NSString * const RootEntity = @"Root"; ...@@ -264,7 +264,7 @@ static NSString * const RootEntity = @"Root";
dispatch_once(&onceToken, ^{ dispatch_once(&onceToken, ^{
tags = @[@"one", @"two", @"three", @"hot", @"urgent", @"important", @"red", @"green", @"blue", @"animal", @"vegetable", @"mineral", @"fungus"]; tags = @[@"one", @"two", @"three", @"hot", @"urgent", @"important", @"red", @"green", @"blue", @"animal", @"vegetable", @"mineral", @"fungus"];
}); });
return [NSSet setWithArray:[tags objectsAtIndexes:[NSIndexSet indexSetWithIndexes:indexes]]]; return [NSSet setWithArray:[tags objectsAtIndexes:[NSIndexSet buy_indexSetWithIndexes:indexes]]];
} }
- (NSDate *)dateWithComponents:(NSDateComponents *)components - (NSDate *)dateWithComponents:(NSDateComponents *)components
...@@ -304,7 +304,7 @@ static NSString * const RootEntity = @"Root"; ...@@ -304,7 +304,7 @@ static NSString * const RootEntity = @"Root";
@implementation NSIndexSet (BUYTestAdditions) @implementation NSIndexSet (BUYTestAdditions)
+ (instancetype)indexSetWithIndexes:(NSArray *)indexes + (instancetype)buy_indexSetWithIndexes:(NSArray *)indexes
{ {
NSMutableIndexSet *indexSet = [NSMutableIndexSet indexSet]; NSMutableIndexSet *indexSet = [NSMutableIndexSet indexSet];
for (NSNumber *index in indexes) { for (NSNumber *index in indexes) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment