From fede7721d37264f4f891c3b6cb258ce86912b4db Mon Sep 17 00:00:00 2001 From: Thomas Aylott Date: Wed, 24 Oct 2012 19:52:57 -0700 Subject: [PATCH] Fixes #3 Add (optional) support for ARC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After creating a new SkankySDK project, use the **Refactor > Convert to Objective-C ARC…** command to convert your project to ARC. --- include/SkankySDK.h | 7 ------- install.sh | 6 ++++++ .../TemplateInfo.plist | 2 -- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/include/SkankySDK.h b/include/SkankySDK.h index 3fcbb33..30663a5 100644 --- a/include/SkankySDK.h +++ b/include/SkankySDK.h @@ -128,13 +128,6 @@ static inline BOOL KIOnSnowLeopard() return NO; } -static inline void KISetPatchInputValue(id patch,NSString *portKey,id value) -{ - QCPort *port = [patch valueForKey:portKey]; - [port setValue:value]; - object_setInstanceVariable([patch valueForKey:portKey],"_updated",(void *)YES); -} - #define KIRegisterPatch(patchClass) \ if( ![manager isNodeRegisteredWithName: NSStringFromClass([patchClass class])] ) \ [manager registerNodeWithClass:[patchClass class]]; \ diff --git a/install.sh b/install.sh index a76e9e6..ec57d6f 100755 --- a/install.sh +++ b/install.sh @@ -9,3 +9,9 @@ cp -R "sdk/Project Templates/Kineme SkankySDK" "/Applications/Xcode.app/Contents mkdir -p /Library/Frameworks/SkankySDK.framework/Headers cp include/* /Library/Frameworks/SkankySDK.framework/Headers/ + +mkdir -p "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SkankySDK.framework/Headers/" +cp include/* "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SkankySDK.framework/Headers/" + +mkdir -p "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/SkankySDK.framework/Headers/" +cp include/* "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/SkankySDK.framework/Headers/" diff --git a/sdk/Project Templates/Kineme SkankySDK/SkankySDK Quartz Composer Plug-in.xctemplate/TemplateInfo.plist b/sdk/Project Templates/Kineme SkankySDK/SkankySDK Quartz Composer Plug-in.xctemplate/TemplateInfo.plist index 3b0d442..8e5954f 100644 --- a/sdk/Project Templates/Kineme SkankySDK/SkankySDK Quartz Composer Plug-in.xctemplate/TemplateInfo.plist +++ b/sdk/Project Templates/Kineme SkankySDK/SkankySDK Quartz Composer Plug-in.xctemplate/TemplateInfo.plist @@ -133,8 +133,6 @@ cp -rf "$BUILT_PRODUCTS_DIR/___PACKAGENAME___.plugin" "$USER_LIBR plugin COMBINE_HIDPI_IMAGES YES - FRAMEWORK_SEARCH_PATHS - $(inherited) "$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks" /Library/Frameworks