Hi,

I've just spent a long time being puzzled by the following behavior.

I have a String (I thought).  When I tried to use 

my_string.encode(..) 

I got a NoMethodError exception.

I only finally realised what was happening when I subsequently did 

my_string.force_encoding(...).  

In this case I get a helpful exception telling me that force_encoding is not 
supported for NSStrings.

It would be very helpful if encode failed in the same way - or even created a 
ruby String under the covers?

Steve





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

Reply via email to