From 693933c46910a5f52dcd2791b7c6d2a56dccd396 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 | 18 +++++++++++++++--- .../TemplateInfo.plist | 2 -- uninstall.sh | 4 +++- 4 files changed, 18 insertions(+), 13 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 650fa8d..cc135e1 100755 --- a/install.sh +++ b/install.sh @@ -1,8 +1,20 @@ #!/bin/sh -cp -R sdk/Project\ Templates /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates -cp -R sdk/File\ Templates /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project\ Templates -mkdir -p /Library/Frameworks/SkankySDK.framework +cd "$(dirname "$0")" # Allows this script to be run from any directory + +./uninstall.sh + +cp -R "sdk/Project Templates/Kineme SkankySDK" "/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project Templates" +cp -R "sdk/File Templates/Kineme SkankySDK" "/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates" + +mkdir -p /Library/Frameworks/SkankySDK.framework/Headers cp -R include /Library/Frameworks/SkankySDK.framework/Headers cp -R resource /Library/Frameworks/SkankySDK.framework/Resources +mkdir -p "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SkankySDK.framework" +cp -R include "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SkankySDK.framework/Headers" +cp -R resource "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SkankySDK.framework/Resources" + +mkdir -p "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/SkankySDK.framework" +cp -R include "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/SkankySDK.framework/Headers" +cp -R resource "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/SkankySDK.framework/Resources" 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 diff --git a/uninstall.sh b/uninstall.sh index 940c120..5c56f9b 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -2,4 +2,6 @@ rm -rf /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates/Kineme\ SkankySDK/ rm -rf /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Project\ Templates/Kineme\ SkankySDK/ -rm -rf /Library/Frameworks/SkankySDK.framework/ \ No newline at end of file +rm -rf /Library/Frameworks/SkankySDK.framework/ +rm -rf "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SkankySDK.framework" +rm -rf "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/SkankySDK.framework"