TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Objective C Generics is an effort to try to support basic generics in Objective C.
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.