• 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: The best way to determine if my app is already running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The best way to determine if my app is already running


  • Subject: Re: The best way to determine if my app is already running
  • From: m <email@hidden>
  • Date: Fri, 4 Jun 2004 17:15:30 -0700

On Jun 4, 2004, at 3:36 PM, John Stiles wrote:

I have an app where its personality is largely data-driven--it can be totally different to the end user based on data within the bundle. But the code is all the same. Several copies of this app can be running simultaneously.
I want to be able to detect if a certain personality of the app is active, and then switch to it if it is. I can't base it on something like bundle identifier or application signature, since like I was saying, the code is always identical.
So what's the easiest way to register some global system property that would allow me to connect an identifier (i.e., a product name specified in my data) with a running app? So I could say "Is there a personality Foo active?" and it could say, "Yes, and here is its ProcessSerialNumber." I am open to either Carbon or Cocoa concepts (my app is mostly Cocoa based, but I come from a long Carbon background).

Sounds like Distributed Objects will do nicely for this.

Read up: <http://www.stepwise.com/Articles/Technical/TalkToMe.html>

Then make your apps register an object with a name that is dependent on the apps personality.

_murat
_______________________________________________
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: The best way to determine if my app is already running
      • From: John Stiles <email@hidden>
References: 
 >The best way to determine if my app is already running (From: John Stiles <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #4302 - 16 msgs
  • Next by Date: Re: Are Bindings Redundant?
  • Previous by thread: The best way to determine if my app is already running
  • Next by thread: Re: The best way to determine if my app is already running
  • Index(es):
    • Date
    • Thread