#515: ScriptingBridge: problem with classForScriptingClass ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- {{{ $ cat ot.rb framework 'Cocoa' framework 'ScriptingBridge' ted = SBApplication.applicationWithBundleIdentifier "com.apple.TextEdit" docs = ted.documents doc = ted.classForScriptingClass("document").alloc.init docs.addObject doc #doc = docs.first # uncommenting this line heals the doc reference doc.text = "knock out" }}} gives {{{ $ macruby ot.rb ot.rb:in `<main>': unrecognized runtime type `x' (TypeError) }}} and sometimes {{{ $ macruby ot.rb Segmentation fault }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/515> MacRuby <http://macruby.org/>