Just trying to figure out what is best: when using a method that accepts (NSError**) , is it better to send it nil or NULL ?
For example,
NSArray *items = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:NULL];
The documentation says: "You can specify nil for this parameter if you do not want to receive error information." On the other hand, since its a double pointer, does NULL seem to make sense?
Joseph Lin
source share