• 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 string equation to int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting string equation to int


  • Subject: Re: Converting string equation to int
  • From: Sherm Pendley <email@hidden>
  • Date: Sat, 12 Feb 2005 10:41:43 -0500

On Feb 11, 2005, at 7:54 PM, Christopher Drum wrote:

Does anyone know a Cocoa method that will accept an equation as an NSString and evaluate it to achieve an int (or long, or whatever).

You could use NSTask to pipe it to bc and get back the results. "man bc" for details.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Converting string equation to int
      • From: Christopher Drum <email@hidden>
References: 
 >Converting string equation to int (From: Christopher Drum <email@hidden>)

  • Prev by Date: Re: NSImageView only for images?
  • Next by Date: Re: A few questions about Memory Management
  • Previous by thread: Re: Converting string equation to int
  • Next by thread: Re: Converting string equation to int
  • Index(es):
    • Date
    • Thread