Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

Commit

Permalink
Fixes kineme#3 Add (optional) support for ARC
Browse files Browse the repository at this point in the history
After creating a new SkankySDK project, use the **Refactor > Convert to Objective-C ARC…** command to convert your project to ARC.
  • Loading branch information
subtleGradient committed Oct 25, 2012
1 parent c531100 commit 137fb42
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
7 changes: 0 additions & 7 deletions include/SkankySDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]]; \
Expand Down
18 changes: 15 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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 include "/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 include "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/SkankySDK.framework/Resources"
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ cp -rf "$BUILT_PRODUCTS_DIR/___PACKAGENAME___.plugin" "$USER_LIBR
<string>plugin</string>
<key>COMBINE_HIDPI_IMAGES</key>
<string>YES</string>
<key>FRAMEWORK_SEARCH_PATHS</key>
<string>$(inherited) &quot;$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks&quot; /Library/Frameworks</string>
</dict>
</dict>
</array>
Expand Down

0 comments on commit 137fb42

Please sign in to comment.