Ticket #131 (new defect)
Dictionary arg not accepted
| Reported by: | francois@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby 0.4 |
| Component: | MacRuby | Keywords: | |
| Cc: | masterkain@… |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.

