diff --git a/NSArray+map.m b/NSArray+map.m index af297d2..a0015bd 100644 --- a/NSArray+map.m +++ b/NSArray+map.m @@ -28,13 +28,7 @@ @implementation NSArray (YOLO) if (o) mapped[jj++] = o; } - if ([self respondsToSelector:@selector(initWithObjects:count:)]) { - return [[self.class alloc] initWithObjects:mapped count:jj]; - } else { - // some secret implementations of NSArray don't respond to the - // above selector. - return [NSArray arrayWithObjects:mapped count:jj]; - } + return [NSArray arrayWithObjects:mapped count:jj]; }; } diff --git a/NSSet+fmap.m b/NSSet+fmap.m index b13db36..3a3ee4c 100644 --- a/NSSet+fmap.m +++ b/NSSet+fmap.m @@ -11,11 +11,7 @@ @implementation NSSet (YOLO) if (o) mapped[ii++] = o; } - if ([self respondsToSelector:@selector(initWithObjects:count:)]) { - return [[self.class alloc] initWithObjects:mapped count:ii]; - } else { - return [[NSSet alloc] initWithObjects:mapped count:ii]; - } + return [[NSSet alloc] initWithObjects:mapped count:ii]; }; } diff --git a/YOLOKit.podspec b/YOLOKit.podspec index dcba5f6..7171b53 100644 --- a/YOLOKit.podspec +++ b/YOLOKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'YOLOKit' - s.version = '11.1.1' + s.version = '11.1.2' s.source = { :git => 'https://github.com/mxcl/YOLOKit.git', :tag => s.version } s.requires_arc = true s.summary = 'A delightful library for enumerating Foundation objects.'