Re: Converting a NSString into a math opertation
Re: Converting a NSString into a math opertation
- Subject: Re: Converting a NSString into a math opertation
- From: Sherm Pendley <email@hidden>
- Date: Thu, 20 Jun 2002 16:13:02 -0400
Fair warning: This is a somewhat self-serving answer, as I'm suggesting
my own project as a solution to your problem.
On Wednesday, June 19, 2002, at 05:56 PM, Rodrigo Varela Tabuyo wrote:
>
What I need to know is if there is a way of converting a NSString
>
directly into a math function
If you're not particularly tied to Objective-C, you could use my
CamelBones bridge to write your application in Perl. Perl has an eval()
function that does precisely what you need - it evaluates a Perl
expression in a string, and returns the result.
There is, in fact, a tutorial that describes almost exactly what you're
looking for. Unfortunately for me, it's written in Japanese, and
babelfish.altavista.com didn't do a very good job of translating it to
English. You may get better results with a Spanish translation.
<URL:
http://perl.infoware.ne.jp/documents/Dekiru_CamelBones.html>
You can find CamelBones at:
<URL:
http://camelbones.sourceforge.net>
sherm--
Never put off until tomorrow what you can do today. There might be a law
against it by that time.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.