• 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: Only one loaded executable...How ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Only one loaded executable...How ?


  • Subject: Re: Only one loaded executable...How ?
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 22 Jan 2003 12:32:39 -0800

On Wednesday, January 22, 2003, at 11:38 AM, kubernan wrote:

I'm trying to find a elegant way to avoid the possibility
to launch my foundation application (no GUI) more than once.

Typically one would create some system-wide shared resource (file, socket, port, etc.) to indicate that you are already running. Best would be a resource that would automatically be cleaned up when your process exits. In Foundation probably the easiest thing would be to register an NSPort with the default NSPortNameServer.

Douglas Davidson
_______________________________________________
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.

References: 
 >Only one loaded executable...How ? (From: kubernan <email@hidden>)

  • Prev by Date: Re: NSCell, -mouseDownFlags, and NSPeriodicMask
  • Next by Date: Re: Only one loaded executable...How ?
  • Previous by thread: Only one loaded executable...How ?
  • Next by thread: Re: Only one loaded executable...How ?
  • Index(es):
    • Date
    • Thread