How do I write my own "extension method" in objective-c?
http://code.google.com/p/json-framework/
This library does it and it works like this.
NSString *myString = ...;
id myResult = [myString JSONValue];
where the myResult
returns an NSDictionary
or NSArray
.
What are these called? How do I write my own?