launching 2 same applications
launching 2 same applications
- Subject: launching 2 same applications
- From: "Sean Liong" <email@hidden>
- Date: Tue, 07 Oct 2003 06:34:54 +0000
Hi,
I want to make sure my application run path is only on /Application/xx.app.
If the application xx.app is on the other folder or location, it will search
for the /Application/xx.app and launch from there. How can this be achieved.
In my testing, I tried the following...
In +(void) load,
use [[NSBundle mainBundle] bundlePath]; to check for currently path.
if run path is not /Application/xx.app, I quit the current application and
relaunch (using launchedTaskWithLaunchPath) the application from
/Application/xx.app. This attempt failed.
I will only like to have the application doing the checking itself, and not
other application involved.
Thanks for any advices.
Regards,
sean
In the loading of the application, I will like to check for the
application's run path. If the run path is not
/Application/xx.app,
_________________________________________________________________
Using a handphone prepaid card? Reload your credit online!
http://www.msn.com.my/reloadredir/default.asp
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.