From: Eloy D. <elo...@gm...> - 2007-12-19 10:00:01
|
Hi Rich, You would use the regular coercion methods in Ruby, in this case that's #to_s. myTextField.stringValue.to_s In other cases where you might have an object which could be anything, then you can use #to_ruby Cheers, Eloy On Dec 19, 2007 10:55 AM, Rich Warren <rw...@gm...> wrote: > I have another quick question. > > OK, so I can get the OSX string from a text field by calling > myTextField.stringValue(). > > How do I convert this into a Ruby String so that I can use Ruby's > regular expressions on it? > > Thanks, > > -Rich- > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |