Re: How to avoid launching the same application multiple times?
Re: How to avoid launching the same application multiple times?
- Subject: Re: How to avoid launching the same application multiple times?
- From: Dave Keck <email@hidden>
- Date: Fri, 22 Jan 2010 05:34:44 -1000
> It is working fine. But i am getting a message says another user is running
> the same application. But i am the only user using the application.Is there
> any way to customize the alert message? or any other solutions for this?
I doubt the message is customizable.
To implement the functionality yourself, see NSWorkspace's
-launchedApplications. (That only returns the apps running in the
current user's session, though. If you only want to allow one instance
for the entire machine, you'll need to use lower-level APIs.) With
that said, I'd just use LSMultipleInstancesProhibited and file a bug
with Apple regarding the error message.
_______________________________________________
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