Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ccgus/jstalk
Browse files Browse the repository at this point in the history
  • Loading branch information
ccgus committed Apr 4, 2012
2 parents 2de5d8d + 1a51751 commit f0586c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/jstbuild.sh
Expand Up @@ -93,7 +93,7 @@ mv res/Info.plist.tmp res/Info.plist



xcodebuild=/Developer/usr/bin/xcodebuild
xcodebuild=/usr/bin/xcodebuild
function buildTarget {

echo Building "$1"
Expand Down
10 changes: 9 additions & 1 deletion jscocoa/JSCocoa/JSCocoaController.m
Expand Up @@ -249,7 +249,15 @@ - (id)initWithGlobalContext:(JSGlobalContextRef)_ctx
[self loadFrameworkWithName:@"AppKit"];
[self loadFrameworkWithName:@"CoreFoundation"];
[self loadFrameworkWithName:@"Foundation"];
[self loadFrameworkWithName:@"CoreGraphics" inPath:@"/System/Library/Frameworks/ApplicationServices.framework/Frameworks"];

// CoreGraphics.framework moved in 10.8
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/System/Library/Frameworks/CoreGraphics.framework"]) {
[self loadFrameworkWithName:@"CoreGraphics"];
}
else {
[self loadFrameworkWithName:@"CoreGraphics" inPath:@"/System/Library/Frameworks/ApplicationServices.framework/Frameworks"];
}

#endif

#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
Expand Down

0 comments on commit f0586c5

Please sign in to comment.