- (id) init { if ((self = [super init])) { Method lMethod = class_getClassMethod([NSBundle class],@selector(loadNibNamed:owner:)); if(!lMethod) NSLog(@"NSBundle+loadNibNamed:owner: not found!"); else { #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 gDefaultNSBundleLoadNibNamed = method_setImplementation(lMethod,(IMP)loadNibNamed); #else gDefaultNSBundleLoadNibNamed = lMethod->method_imp; lMethod->method_imp = (IMP)loadNibNamed; #endif } } return self; }