Upgrading ITFoundation to Xcode 3.0 and the Mac OS X 10.5 SDK.
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Mon, 28 Dec 2009 13:58:47 +0000 (08:58 -0500)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Mon, 28 Dec 2009 13:58:47 +0000 (08:58 -0500)
ITCategory-NSObject.m
ITFoundation.xcodeproj/project.pbxproj

index 36b59c5..ecd1a97 100644 (file)
@@ -8,7 +8,7 @@
        NSMutableArray *tempArray;
        NSArray *resultArray;
        Class *classes;
        NSMutableArray *tempArray;
        NSArray *resultArray;
        Class *classes;
-       struct objc_class *superClass;
+       Class superClass;
        Class *current;
        int count, newCount, index;
        tempArray = [[NSMutableArray allocWithZone:nil] initWithCapacity:12];
        Class *current;
        int count, newCount, index;
        tempArray = [[NSMutableArray allocWithZone:nil] initWithCapacity:12];
                        const Class thisClass = [self class];
                        current = classes;
                        for (index = 0; index < count; ++index) {
                        const Class thisClass = [self class];
                        current = classes;
                        for (index = 0; index < count; ++index) {
-                               superClass = (*current)->super_class;
+                               superClass = class_getSuperclass((*current));
                                if (superClass) {
                                        do {
                                                if (superClass == thisClass) {
                                                        [tempArray addObject:*current];
                                                        break;
                                                }
                                if (superClass) {
                                        do {
                                                if (superClass == thisClass) {
                                                        [tempArray addObject:*current];
                                                        break;
                                                }
-                                               superClass = superClass->super_class;
+                                               superClass = class_getSuperclass(superClass);
                                        } while (superClass);
                                }
                                ++current;
                                        } while (superClass);
                                }
                                ++current;
@@ -87,7 +87,7 @@
                        current = classes;
 
                        for (index = 0; index < count; ++index) {
                        current = classes;
 
                        for (index = 0; index < count; ++index) {
-                               if ((*current)->super_class == thisClass) {
+                               if (class_getSuperclass((*current)) == thisClass) {
                                        [tempArray addObject:*current];
                                }
                                ++current;
                                        [tempArray addObject:*current];
                                }
                                ++current;
index 67f071f..05cf1c7 100644 (file)
@@ -3,7 +3,7 @@
        archiveVersion = 1;
        classes = {
        };
        archiveVersion = 1;
        classes = {
        };
-       objectVersion = 42;
+       objectVersion = 44;
        objects = {
 
 /* Begin PBXBuildFile section */
        objects = {
 
 /* Begin PBXBuildFile section */
                0867D690FE84028FC02AAC07 /* Project object */ = {
                        isa = PBXProject;
                        buildConfigurationList = 7CC441C208A83AFA001BCF9B /* Build configuration list for PBXProject "ITFoundation" */;
                0867D690FE84028FC02AAC07 /* Project object */ = {
                        isa = PBXProject;
                        buildConfigurationList = 7CC441C208A83AFA001BCF9B /* Build configuration list for PBXProject "ITFoundation" */;
-                       compatibilityVersion = "Xcode 2.4";
+                       compatibilityVersion = "Xcode 3.0";
                        hasScannedForEncodings = 1;
                        mainGroup = 0867D691FE84028FC02AAC07 /* ITFoundation */;
                        productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
                        hasScannedForEncodings = 1;
                        mainGroup = 0867D691FE84028FC02AAC07 /* ITFoundation */;
                        productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
                                COPY_PHASE_STRIP = NO;
                                DYLIB_COMPATIBILITY_VERSION = 1;
                                DYLIB_CURRENT_VERSION = 1;
                                COPY_PHASE_STRIP = NO;
                                DYLIB_COMPATIBILITY_VERSION = 1;
                                DYLIB_CURRENT_VERSION = 1;
-                               FRAMEWORK_SEARCH_PATHS = (
-                                       "$(FRAMEWORK_SEARCH_PATHS)",
-                                       "$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks",
-                                       "$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks",
-                               );
                                FRAMEWORK_VERSION = A;
                                GCC_DYNAMIC_NO_PIC = NO;
                                GCC_ENABLE_FIX_AND_CONTINUE = YES;
                                FRAMEWORK_VERSION = A;
                                GCC_DYNAMIC_NO_PIC = NO;
                                GCC_ENABLE_FIX_AND_CONTINUE = YES;
                                INSTALL_PATH = "@executable_path/../Frameworks";
                                LIBRARY_STYLE = DYNAMIC;
                                MACH_O_TYPE = mh_dylib;
                                INSTALL_PATH = "@executable_path/../Frameworks";
                                LIBRARY_STYLE = DYNAMIC;
                                MACH_O_TYPE = mh_dylib;
-                               MACOSX_DEPLOYMENT_TARGET = 10.2;
                                OTHER_LDFLAGS = (
                                        "-seg1addr",
                                        0x15000000,
                                OTHER_LDFLAGS = (
                                        "-seg1addr",
                                        0x15000000,
                                COPY_PHASE_STRIP = YES;
                                DYLIB_COMPATIBILITY_VERSION = 1;
                                DYLIB_CURRENT_VERSION = 1;
                                COPY_PHASE_STRIP = YES;
                                DYLIB_COMPATIBILITY_VERSION = 1;
                                DYLIB_CURRENT_VERSION = 1;
-                               FRAMEWORK_SEARCH_PATHS = (
-                                       "$(FRAMEWORK_SEARCH_PATHS)",
-                                       "$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks",
-                                       "$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks",
-                               );
                                FRAMEWORK_VERSION = A;
                                GCC_ENABLE_FIX_AND_CONTINUE = NO;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
                                FRAMEWORK_VERSION = A;
                                GCC_ENABLE_FIX_AND_CONTINUE = NO;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
                                INSTALL_PATH = "@executable_path/../Frameworks";
                                LIBRARY_STYLE = DYNAMIC;
                                MACH_O_TYPE = mh_dylib;
                                INSTALL_PATH = "@executable_path/../Frameworks";
                                LIBRARY_STYLE = DYNAMIC;
                                MACH_O_TYPE = mh_dylib;
-                               MACOSX_DEPLOYMENT_TARGET = 10.2;
                                OTHER_LDFLAGS = (
                                        "-seg1addr",
                                        0x15000000,
                                OTHER_LDFLAGS = (
                                        "-seg1addr",
                                        0x15000000,
                        };
                        name = Release;
                };
                        };
                        name = Release;
                };
-               7CC441C108A83AFA001BCF9B /* Default */ = {
-                       isa = XCBuildConfiguration;
-                       buildSettings = {
-                               DYLIB_COMPATIBILITY_VERSION = 1;
-                               DYLIB_CURRENT_VERSION = 1;
-                               FRAMEWORK_SEARCH_PATHS = (
-                                       "$(FRAMEWORK_SEARCH_PATHS)",
-                                       "$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks",
-                                       "$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks",
-                               );
-                               FRAMEWORK_VERSION = A;
-                               GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
-                               GCC_PRECOMPILE_PREFIX_HEADER = YES;
-                               GCC_PREFIX_HEADER = ITFoundation_Prefix.pch;
-                               INFOPLIST_FILE = Info.plist;
-                               INSTALL_PATH = "@executable_path/../Frameworks";
-                               LIBRARY_STYLE = DYNAMIC;
-                               MACH_O_TYPE = mh_dylib;
-                               MACOSX_DEPLOYMENT_TARGET = 10.2;
-                               OTHER_LDFLAGS = (
-                                       "-seg1addr",
-                                       0x15000000,
-                               );
-                               PRODUCT_NAME = ITFoundation;
-                               WRAPPER_EXTENSION = framework;
-                       };
-                       name = Default;
-               };
                7CC441C308A83AFA001BCF9B /* Debug */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
                7CC441C308A83AFA001BCF9B /* Debug */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
-                               ARCHS = (
-                                       ppc,
-                                       i386,
-                               );
-                               MACOSX_DEPLOYMENT_TARGET = 10.2;
-                               SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+                               ARCHS = "$(ONLY_ACTIVE_ARCH_PRE_XCODE_3_1)";
+                               MACOSX_DEPLOYMENT_TARGET = 10.5;
+                               ONLY_ACTIVE_ARCH_PRE_XCODE_3_1 = "$(NATIVE_ARCH_ACTUAL)";
+                               SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
                        };
                        name = Debug;
                };
                7CC441C408A83AFA001BCF9B /* Release */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
                        };
                        name = Debug;
                };
                7CC441C408A83AFA001BCF9B /* Release */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
-                               ARCHS = (
-                                       ppc,
-                                       i386,
-                               );
-                               MACOSX_DEPLOYMENT_TARGET = 10.2;
-                               SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
+                               ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
+                               MACOSX_DEPLOYMENT_TARGET = 10.5;
+                               SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
                        };
                        name = Release;
                };
                        };
                        name = Release;
                };
-               7CC441C508A83AFA001BCF9B /* Default */ = {
-                       isa = XCBuildConfiguration;
-                       buildSettings = {
-                               ARCHS = (
-                                       ppc,
-                                       i386,
-                               );
-                               MACOSX_DEPLOYMENT_TARGET = 10.2;
-                               SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
-                       };
-                       name = Default;
-               };
 /* End XCBuildConfiguration section */
 
 /* Begin XCConfigurationList section */
 /* End XCBuildConfiguration section */
 
 /* Begin XCConfigurationList section */
                        buildConfigurations = (
                                7CC441BF08A83AFA001BCF9B /* Debug */,
                                7CC441C008A83AFA001BCF9B /* Release */,
                        buildConfigurations = (
                                7CC441BF08A83AFA001BCF9B /* Debug */,
                                7CC441C008A83AFA001BCF9B /* Release */,
-                               7CC441C108A83AFA001BCF9B /* Default */,
                        );
                        defaultConfigurationIsVisible = 0;
                        );
                        defaultConfigurationIsVisible = 0;
-                       defaultConfigurationName = Default;
+                       defaultConfigurationName = Release;
                };
                7CC441C208A83AFA001BCF9B /* Build configuration list for PBXProject "ITFoundation" */ = {
                        isa = XCConfigurationList;
                        buildConfigurations = (
                                7CC441C308A83AFA001BCF9B /* Debug */,
                                7CC441C408A83AFA001BCF9B /* Release */,
                };
                7CC441C208A83AFA001BCF9B /* Build configuration list for PBXProject "ITFoundation" */ = {
                        isa = XCConfigurationList;
                        buildConfigurations = (
                                7CC441C308A83AFA001BCF9B /* Debug */,
                                7CC441C408A83AFA001BCF9B /* Release */,
-                               7CC441C508A83AFA001BCF9B /* Default */,
                        );
                        defaultConfigurationIsVisible = 0;
                        );
                        defaultConfigurationIsVisible = 0;
-                       defaultConfigurationName = Default;
+                       defaultConfigurationName = Release;
                };
 /* End XCConfigurationList section */
        };
                };
 /* End XCConfigurationList section */
        };