Usign the NSString class method stringWithContentsOfFile:encoding:error I can:
NSError *error;
NSString *fileContent = [NSString stringWithContentsOfFile:... encoding:... error:&error]
if (fileContent == nil) {
NSLog(@"%@", error);
}
I would like to do something similar along the lines of:
NSString *message;
BOOL result = [self checkSomeRandomStuff:&message];
if (result == NO) {
NSLog(@"%@", message);
}
How would I assign the message variable in the method checkSomeRandomStuff?