objective c - Run a binary from .app's package contents -


can have binary files .sh part of .app in "package contents".

i have .app has 2 buttons start/stop kicks off process start server. keep clean, store start/stop shell scripts within .app.

can execute shell scripts .app?

on mac, yes: use nstask class’s +launchedtaskwithlaunchpath:arguments: method (for example), after retrieving path binaries 1 of methods on nsbundle’s—-resourcepath, -bundlepath, -pathforresource:oftype:, or whatever.

on ios... no. nstask isn’t available.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -