Every now and then when my app starts up, I get a weird LocalJumpError:
2008-03-11 15:14:56.982 Blogo[12502] TabViewController#newPost:
LocalJumpError: unexpected return
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_wrapper.rb:145:in
`default'
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_wrapper.rb:67:in
`analyze_missing'
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_wrapper.rb:48:in
`method_missing'
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/TabViewController.rb:189:in
`newPost'
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/rb_main.rb:35:in
`NSApplicationMain'
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/rb_main.rb:35
/Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/SACrashReporter.rb:77:in
`run_app'
The offending line in my code is:
@editor.keyWindow.makeFirstResponder @titleField
This call to makeFirstResponder seems to be the issue.
This code is called from a 1.5 second timer in my controller's awakeFromNib:
method.
Has anyone else seen this error, or have any idea what to do about it?
Thanks,
Ben
|