[MacRuby-devel] [MacRuby] #286: YAML unable to load NSString

MacRuby ruby-noreply at macosforge.org
Fri Jun 19 09:04:56 PDT 2009


#286: YAML unable to load NSString
---------------------------------+------------------------------------------
 Reporter:  ndnichols@…          |       Owner:  lsansonetti@…        
     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/>



More information about the MacRuby-devel mailing list