prevent multiple instances of a program
prevent multiple instances of a program
- Subject: prevent multiple instances of a program
- From: Martin Batholdy <email@hidden>
- Date: Wed, 11 May 2011 23:02:36 +0200
Hi,
My program consists of a menu item and is NSUIagent - so it is hidden in the Mac OS app-bar.
Now what surprises me is that I am able to open several instances of this program.
Every time I click on the app-file a new symbol appears and I have a new instance of my program running.
How can I prevent this?
(so that system-wide you can only have one instance of the program running)
Is there a build-option in xCode for this?
thanks!_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden