• 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: How to avoid launching the same application multiple times?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to avoid launching the same application multiple times? (From: Ramesh P <email@hidden>)
 >Re: How to avoid launching the same application multiple times? (From: Dave Keck <email@hidden>)
 >Re: How to avoid launching the same application multiple times? (From: Ramesh P <email@hidden>)

  • Prev by Date: Re: UIImageView display as "multiply"?
  • Next by Date: Re: UIImageView display as "multiply"?
  • Previous by thread: Re: How to avoid launching the same application multiple times?
  • Next by thread: UIImageView display as "multiply"?
  • Index(es):
    • Date
    • Thread