The NSObject implementation [super init]will never return zero. The underlying implementation simply returns self .
, , nil, - . , -initWithContentsOfURL:error: URL. , , error:, . , , NSObject, .
. , . NSSetUncaughtExceptionHandler, , , . .
objective-c nil , ? . , nil, , , .
, initalizer . , .
:
NSError *error;
FooClass *myFoo = [[FooClass alloc] initWithContentsOfURL:blah error:&error]
if (myFoo == nil) {
} else {
}
, , . , error:, .