#667: File.join not working with NSStrings -----------------------------+---------------------------------------------- Reporter: tvmoore@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: -----------------------------+---------------------------------------------- Description changed by martinlagardette@…: Old description:
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",@target_path)
Program received signal: “EXC_BAD_ACCESS”.
rb_file_join rb_str_get_uchar
New description: {{{ $> 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",@target_path) }}} Program received signal: “EXC_BAD_ACCESS”. rb_file_join rb_str_get_uchar -- -- Ticket URL: <http://www.macruby.org/trac/ticket/667#comment:1> MacRuby <http://macruby.org/>