Permalink
Browse files

load CoreGraphics.framework because its location was changed at OSX 10.8

  • Loading branch information...
1 parent a10421a commit 5ac052690378eca7bc30c57d22e26a6b6519b333 @Watson1978 Watson1978 committed May 2, 2013
Showing with 11 additions and 0 deletions.
  1. +6 −0 PathDemo/rb_main.rb
  2. +5 −0 PhileasFrog/rb_main.rb
View
@@ -9,6 +9,12 @@
# Loading the Cocoa framework. If you need to load more frameworks, you can
# do that here too.
framework 'Cocoa'
+begin
+ # for OSX 10.8
+ framework 'CoreGraphics'
+rescue
+end
+
# Loading all the Ruby project files.
dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
View
@@ -22,6 +22,11 @@
# do that here too.
framework 'Cocoa'
framework 'QuartzCore'
+begin
+ # for OSX 10.8
+ framework 'CoreGraphics'
+rescue
+end
puts NSBundle.mainBundle.localizations

0 comments on commit 5ac0526

Please sign in to comment.