Ticket #286 (closed defect: fixed)
YAML unable to load NSString
| Reported by: | ndnichols@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | minor | Milestone: | MacRuby 0.5 |
| Component: | MacRuby | Keywords: | |
| Cc: | ndnichols@… |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


