[MacRuby-devel] NSString.to_data

Caio Chassot lists at caiochassot.com
Mon Apr 18 13:34:19 PDT 2011

On Mon, Apr 18, 2011 at 22:06, Robert Rice <rice.audio at pobox.com> wrote:
> But for consistency, you may want to add the .to_data method to the NSString

See the recent thread "Hash Table", it explains the funny business going on.

I also posted something to discuss this general matter a few months
ago but don't really remember if it got any traction (think not). I
guess it approached this via NSArray.

You don't need to use dataUsingEncoding, you can just convert that to
a ruby string instead. Many ways to do that come to me:


More information about the MacRuby-devel mailing list