How can i add a new method to NSString class. I need to create a method that get's called on a string and returns an NSDictionary. I know that i can simply create a function that gets a string and return an nsdictionary, but i want to know how to add it to an existing class.
NSString *myStr = @"some json string";
NSDictionary *dictionary = [myStr getJSONData];