Example:
The validation method contains this validation to see if an NSError object should be created or not:
- (BOOL)validateCompanyName:(NSString *)newName error:(NSError **)outError { if (outError != NULL) {
Now I am passing an NSError object, for example:
NSError *error = nil; BOOL ok = [self validateCompanyName:@"Apple" error:&error];
I'm not sure if this matches the check, not NULL. I think this is not NULL, since I believe that NULL is not zero. Maybe someone can clean this up?
source share