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
Post a Comment