#286: YAML unable to load NSString
---------------------------------+------------------------------------------
Reporter: ndnich...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
If you YAML.dump an immutable NSString (like the kind returned by an
NSTextfield's -stringValue), you cannot YAML.load it. It fails with a
"bind argument must be an instance of NSMutableString (TypeError)" error.
You can YAML.dump a mutableCopy.
Attached is an rb_main.rb file that demonstrates this.
--
Ticket URL: <http://www.macruby.org/trac/ticket/286>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel