• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
launching 2 same applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: launching 2 same applications
      • From: Andreas Mayer <email@hidden>
    • Re: launching 2 same applications
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Re: Strategies for fitting an NSWindow to its content?
  • Next by Date: Re: Strategies for fitting an NSWindow to its content?
  • Previous by thread: Re: NSTask
  • Next by thread: Re: launching 2 same applications
  • Index(es):
    • Date
    • Thread