Hi Robert,

As I wrote earlier, please refrain yourself from using trunk right now for real development. It has well-known problems :-)

The NSString bridging code for the new String should land later this week...

Laurent

On Mar 17, 2010, at 8:07 PM, Robert Rice wrote:

Hi group:

UTF-8 default is working again in 3/17 build but I have new problems with strings:

Given:
def reportDate
return nil if @calendar.nil?

desc = @calendar.dateValue.description
desc.slice(0..3) + desc.slice(5..6) + desc.slice(8..9)
end

puts "rptdate #{reportDate}"

I get:
2010-03-17 23:03:32.320 MacRuby 0.5[1594:a0f] undefined method `slice' for #<String:0x2022a9c40>


Given:
def reportDate
return nil if @calendar.nil?

desc = @calendar.dateValue.description.to_s
desc.slice(0..3) + desc.slice(5..6) + desc.slice(8..9)
end

puts "rptdate #{reportDate()}"

I get: rptdate #<Stin:0

@calendar is linked to a Date Selector object.

Thanks,
Bob Rice

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel