Skip to content

tomersh/Objective-C-Generics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Objective C Generics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published