Hello,
I need to start a third party application, from my cocoa application
in Rosetta. I was using "LaunchApplication" API to start that
application.
Steps, I taken, and their results are:
1. Checked "Run in rosetta" option on Info window. It runs in Rosetta
but if I copy my application to other location it doesn't preserve
this attribute.
2. Use ditto -arch ppc. Its works perfectly for me.
3. Change Info.plist of target application to include "LSPrefersPPC"
key as per documents. It doesn't start in Rosetta. In documentation I
got the sentence "For an application that you are writing,". Can not
this approach be used for applications, which are already written?
4. Use "sysctlbyname" function code as given in documentation but it
doesn't work. My guess is LaunchApplication might be using "exec" call
internally. Am I wrong here?