selector - Are Objective-C initializers allowed to share the same name? -
i'm running odd issue in objective-c when have 2 classes using initializers of same name, differently-typed arguments. example, let's create classes , b: a.h: #import <cocoa/cocoa.h> @interface : nsobject { } - (id)initwithnum:(float)thenum; @end a.m: #import "a.h" @implementation - (id)initwithnum:(float)thenum { self = [super init]; if (self != nil) { nslog(@"a: %f", thenum); } return self; } @end b.h: #import <cocoa/cocoa.h> @interface b : nsobject { } - (id)initwithnum:(int)thenum; @end b.m: #import "b.h" @implementation b - (id)initwithnum:(int)thenum { self = [super init]; if (self != nil) { nslog(@"b: %d", thenum); } return self; } @end main.m: #import <foundation/foundation.h> #import "a.h" #import "b.h" int main (int argc, const char * argv[]) { nsautoreleasepool * pool = [[nsautoreleasepool alloc] init...