• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting a NSString into a math opertation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Converting a NSString into a math opertation
      • From: Kyle Mandli <email@hidden>
References: 
 >Converting a NSString into a math opertation (From: Rodrigo Varela Tabuyo <email@hidden>)

  • Prev by Date: Re: Cocoa & OpenBase examples
  • Next by Date: Re: NSOutlineView newbie completely flummoxed
  • Previous by thread: Converting a NSString into a math opertation
  • Next by thread: Re: Converting a NSString into a math opertation
  • Index(es):
    • Date
    • Thread