#515: ScriptingBridge: problem with classForScriptingClass ----------------------------+----------------------------------------------- Reporter: jazz...@… | Owner: lsansone...@… 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/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel