• 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
Re: Single Instance of a Cocoa Application.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Single Instance of a Cocoa Application.


  • Subject: Re: Single Instance of a Cocoa Application.
  • From: PGM <email@hidden>
  • Date: Wed, 19 Jul 2006 10:17:07 -0400

Unlike windows, on a Mac double clicking the Application icon of a running application will simply bring the already running instance to the front. To start two instances of a program, the user must create a copy of the program and run the two different copies. A simple way to check this would be to check a list of running applications at start up and give an alert when another instance of your program is found, though maybe this will not work when the user renames a copy of your program. Search the archives for an example how to do get a list of running apps.

Patrick

On Jul 19, 2006, at 10:04, <email@hidden> wrote:



Hi All,

I am developing an Cocoa Application using objC++.
I want to make sure that when one instance of my application is running,
an user cannot launch another instance of the same application either by
clicking the Application icon or from the terminal.



How do I achieve this?


Looking forward for some guidance.

Thanks & Regards,
Amrit.


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.


WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Single Instance of a Cocoa Application.
      • From: Graham J Lee <email@hidden>
References: 
 >Single Instance of a Cocoa Application. (From: <email@hidden>)

  • Prev by Date: Re: See-through custom NSView
  • Next by Date: Re: Single Instance of a Cocoa Application.
  • Previous by thread: Single Instance of a Cocoa Application.
  • Next by thread: Re: Single Instance of a Cocoa Application.
  • Index(es):
    • Date
    • Thread