Latest 0.0.1
Homepage https://github.com/tomersh/Objective-C-Generics
License Apache Copyright 2013 Tomer Shiri [email protected]

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Platforms ios 4.0, osx 10.5, requires ARC
Authors

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

Latest podspec

{
    "name": "Objective-C-Generics",
    "version": "0.0.1",
    "summary": "Objective C Generics.",
    "homepage": "https://github.com/tomersh/Objective-C-Generics",
    "license": {
        "type": "Apache",
        "text": "                        Copyright 2013 Tomer Shiri [email protected]                        Licensed under the Apache License, Version 2.0 (the "License");n                        you may not use this file except in compliance with the License.n                        You may obtain a copy of the License atnn                        http://www.apache.org/licenses/LICENSE-2.0nn                        Unless required by applicable law or agreed to in writing, softwaren                        distributed under the License is distributed on an "AS IS" BASIS,n                        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.n                        See the License for the specific language governing permissions andn                        limitations under the License.n"
    },
    "authors": {
        "Tomer Shiri": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tomersh/Objective-C-Generics.git",
        "commit": "991c13855f3c323817eb95e63bd16e4b928efed8"
    },
    "platforms": {
        "ios": "4.0",
        "osx": "10.5"
    },
    "source_files": "ObjectiveCGenerics.h",
    "requires_arc": true
}

Pin It on Pinterest

Share This