Got this output in my console when making this call:
OSX::NSBundle.mainBundle.pathForImageResource("blankImage")
'blankImage' exists and this works 99% of the times I run the app.
I recently found a blog post about this LocalJumpError which might be
helpful in identifying the problem:
Work at the dining table: Ruby blocks
gotchas<http://blog.sidu.in/2007/11/ruby-blocks-gotchas.html>
2007-11-29 12:48:06.249 Blogo[19415] WebKitEditor#awakeFromNib:
LocalJumpError: unexpected return
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:617:in
`_kvc_behavior_method_added'
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_import.rb:647:in
`method_added'
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_wrapper.rb:50:in
`ocm_send'
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_wrapper.rb:50:in
`method_missing'
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/WebKitEditor.rb:36:in
`setImageViewDefaultImage'
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/WebKitEditor.rb:25:in
`awakeFromNib'
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/rb_main.rb:27:in
`NSApplicationMain'
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/rb_main.rb:27
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/SACrashReporter.rb:74:in
`run_app'
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/rb_main.rb:3
Let me know if anyone needs more information. Thanks!
Ben
|