Re: Converting string equation to int
Re: Converting string equation to int
- Subject: Re: Converting string equation to int
- From: Christopher Drum <email@hidden>
- Date: Sat, 12 Feb 2005 11:41:18 -0800
Sherm,
That worked perfectly for me. Thank you! I didn't know about the bc
command, and this forced me to finally look at how to work with NSTask.
The whole NSTask / NSPipe syntax seemed a little convoluted at first,
but I puzzled it out without much difficulty.
You could use NSTask to pipe it to bc and get back the results. "man
bc" for details.
sherm--
------------------------------------------------------------------
Christopher Drum
http://homepage.mac.com/christopherdrum
Check out FileWrangler, my five-star rated (MacUpdate, VersionTracker)
Cocoa app written in Objective-C for the batch renaming of files.
_______________________________________________
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