Just trying to figure out what's the best practice: when using method that takes (NSError**)
, is it better to send it nil
or NULL
?
For example,
NSArray *items = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:NULL];
In the documentation it says "You may specify nil for this parameter if you do not want the error information." On the other hand, since its a double pointer, NULL seems to make sense as well?