Skip to content
Browse files

10.8 CoreGraphics path fix (@ccgus)

  • Loading branch information...
1 parent 32a49dc commit 308ca45acdd940a9ca842388dcba8598fcfc0c2e @parmanoir committed Mar 29, 2012
View
9 JSCocoa/JSCocoaController.m
@@ -251,7 +251,14 @@ - (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
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/mini.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
16 ...unner/TestsRunner.xcodeproj/xcuserdata/mini.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
@@ -2,20 +2,4 @@
<Bucket
type = "1"
version = "1.0">
- <FileBreakpoints>
- <FileBreakpoint
- shouldBeEnabled = "Yes"
- ignoreCount = "0"
- continueAfterRunningActions = "No"
- isPathRelative = "0"
- filePath = "/Users/mini/Software Inexdo/JSCocoa/JSCocoa/JSCocoaController.m"
- timestampString = "344212350.164938"
- startingColumnNumber = "9223372036854775807"
- endingColumnNumber = "9223372036854775807"
- startingLineNumber = "174"
- endingLineNumber = "174"
- landmarkName = "-initWithGlobalContext:"
- landmarkType = "5">
- </FileBreakpoint>
- </FileBreakpoints>
</Bucket>
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/mini.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.

0 comments on commit 308ca45

Please sign in to comment.
Something went wrong with that request. Please try again.