Basically I’m wondering if I can compile code that a user inputs in a mac app (I’m trying to make an OCaml text editor that compiles your code) using executables that are already available in the user’s system, such as ocamlc etc. I don’t have any code to show or anything because I’m still figuring out if/how I could build this mac app. Not really sure what other info I should include, so just ask. Thanks!
Basically I’m wondering if I can compile code that a user inputs in a
Share
If you are using Objective-C, check out NSTask.
If not, look at popen. popen gives your parent process control over the I/O streams.