// // Prefix header for all source files of the 'MYPathControl' target in the 'MYPathControl' project // // it renames each reference to NSConnection in following files etc. // so that if we reference to NSConnection in the main program, we will use the locally compiled version // #ifdef __OBJC__ #import #endif // rename reimplemented classes #define NSConnection MYConnection #define NSConnectionDelegate MYConnectionDelegate #define NSDistantObject MYDistantObject #define NSProtocolChecker MYProtocolChecker #define NSDistantObjectRequest MYDistantObjectRequest // make NSPrivate.h compile on Cocoa Foundation #ifndef ASSIGN #define ASSIGN(var, val) ([var release], var=[val retain]) #endif #define objc_realloc(A, B) realloc((A), (B)) #define objc_free(A) free(A) #define _NSXMLParserReadMode int #define GSBaseCString NSObject #define arglist_t void * #define retval_t void * #define METHOD_NULL NULL #define SEL_EQ(S1, S2) S1==S2 #define class_get_instance_method class_getInstanceMethod #define NIMP (NSLog(@"not implemented: %@ %@", NSStringFromClass([self class]), NSStringFromSelector(_cmd)), (void *) 0) #define TESTING 1 // include headers of reimplemented classes #import "../../Foundation/Sources/NSDistantObject.h" #import "../../Foundation/Sources/NSConnection.h" #import "../../Foundation/Sources/NSProtocolChecker.h"