#667: File.join not working with NSStrings
-----------------------------+----------------------------------------------
Reporter: tvmo...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.6
Component: MacRuby | Keywords:
-----------------------------+----------------------------------------------
Description changed by martinlagarde...@…:
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel