tomersh / Objective C Generics
Objective C Generics
Stars: ✭ 727
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].