#131: Dictionary arg not accepted ---------------------------------+------------------------------------------ Reporter: francois@antier.org | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: major | Milestone: MacRuby 0.4 Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ The interpreter finds an error here: @tmp = NSAttributedString.alloc.initWithData(data, options:NSCharacterEncodingDocumentOption, documentAttributes:0, error:outError); /Users/francois/Documents/Essais_xcode_et_Ruby/temp3R/build/Debug/temp3R.app/Contents/Resources/MyDocInRuby.rb:46:in `initWithData:options:documentAttributes:error:': can't convert Ruby object `0' to Objective-C value of type `^@' (ArgumentError) The problem seems to be in the documentAttributes argument; you can pass 0, an NSDictionary, or a Hash, nothing works. Cocoa expects a value of type NSDictionary** for this argument. -- Ticket URL: <http://www.macruby.org/trac/ticket/131> MacRuby <http://macruby.org/>