cocoa - Activate other Application - OSX -


i writing application opens application up. other application agent user not see in dock.

if user clicks on dock symbol of first app, i'd check if there other agent opened not active. if it's want activate second app instead of opening first app. if there's no other agent opened want open main app in normal way.

does know if possible , or have solution?

i'd appreciate every help, cheers.

so question is, how activate app? nsrunningapplication has -activatewithoptions: purpose. this:

nsrunningapplication *otherapp = [nsrunnungapplication runningapplicationwithbundleidentifier:…]; [otherapp activatewithoptions:0]; 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -