Objective C Generics
Objective-C
Latest commit 991c138 Jul 16, 2013 @tomersh Update README.md
Permalink
Failed to load latest commit information.
.gitignore Initial commit Jul 15, 2013
ObjectiveCGenerics.h
README.md Update README.md Jul 16, 2013

README.md

Objective C Generics

Objective C Generics is an effort to try to support basic generics in Objective C.

#Usage#

Copy ObjectiveCGenerics.h to your project. When defining a new class use the GENERICSABLE macro.

#import "ObjectiveCGenerics.h"

GENERICSABLE(MyClass)

@interface MyClass : NSObject<MyClass>

@property (nonatomic, strong) NSString* name;

@end

Now you can use generics with arrays and sets just as you normally do in Java, C#, etc. code