Re: [MacRuby-devel] NSString.to_data

2011-04-18 Thread Caio Chassot
On Mon, Apr 18, 2011 at 22:06, Robert Rice 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 r

[MacRuby-devel] NSString.to_data

2011-04-18 Thread Robert Rice
Using the Scripting Bridge to process e_mails, the bridge return NSString rather than String class when reading the message content. This works fine except that the .to_data method is undefined for NSString. I am able to use dataUsingEncoding as in the following: content = message.conte