[MacRuby-devel] [MacRuby] #667: File.join not working with NSStrings

MacRuby ruby-noreply at macosforge.org
Tue Apr 27 21:38:58 PDT 2010


#667: File.join not working with NSStrings
-----------------------------+----------------------------------------------
 Reporter:  tvmoore@…        |       Owner:  lsansonetti@…        
     Type:  defect           |      Status:  new                  
 Priority:  minor            |   Milestone:  MacRuby 0.6          
Component:  MacRuby          |    Keywords:                       
-----------------------------+----------------------------------------------
 macirb

 x = NSString.stringWithString("test")
 File.join("terry",x)

 gives Abort trap

 xcode Project is getting a String from

 prefs = NSUserDefaults.standardUserDefaults
 @target_path     = prefs.stringForKey(:path)

 File.join("/Volumes", at target_path)

 Program received signal:  “EXC_BAD_ACCESS”.

 rb_file_join
 rb_str_get_uchar

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/667>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list