objective c - Hide an application on launch when invoked using NSTask -


i'm launching application using nstask , using nspipe it's stdout , stderr. i'd hide (the gui) on launch, app commands , exits. can't use nsworkspace since need stdout/stderr. know of way achieve this?

nsrunningapplication hand object representing app if have process id: +[nsrunningapplication runningapplicationwithprocessidentifier:], should able obtain -[nstask processidentifier].

then can send hide nsrunningapplication instance.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -