Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coeur/typedarray

concrete subclass of NSArray with Type filtering
https://github.com/coeur/typedarray

Last synced: about 2 months ago
JSON representation

concrete subclass of NSArray with Type filtering

Awesome Lists containing this project

README

        

TypedArray
==========

concrete subclass of NSArray with Type filtering

Usage
=====

What you can import: you will need to declare an interface and an implementation for each filtering class

#import "TypedArray.h"

TYPED_ARRAY_INTERFACE(NSString)
TYPED_ARRAY_IMPLEMENTATION(NSString)

What you can create: anything like a normal NSArray

// this will produce an NSStringArray with only @"foo" and @"bar"
NSStringArray *myArray = [NSStringArray arrayWithObjects:@"foo", @(true), @"bar", @[], nil];