Hello
I currently have an array of strings, I'm getting a NSString object from this array by calling the -componentsJoinedByString:
method. Example:
NSString *someString = [[NSString alloc] initWithString: [myStrings componentsJoinedByString:@","];
Since -componentsJoinedByString:
returns me an NSString, I'm assuming that it is not "owned" by me, therefore what I just did should be ok? or do I have to do this:
NSString *toDelete = [myStrings componentsJoinedByString:@","];
NSString *someString = [[NSString alloc] initWithString:toDelete];
[toDelete release];
Help with clarifying this is much appreciated!