• 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 ensure one instance running per session?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to ensure one instance running per session?


  • Subject: Re: How to ensure one instance running per session?
  • From: Andrew Farmer <email@hidden>
  • Date: Thu, 15 Feb 2007 19:25:01 -0800

On 15 Feb 07, at 18:38, jerrychang2000 wrote:
... So now, if I want to
support fast user switching, and have my application running only one
instance for each session, what is the proper way to do it in cocoa? Can
someone please help me out?

The OS X user environment won't launch multiple instances of a single application - double-clicking an application that's already open will activate the existing instance rather than launching a new one.


(The exception is if the user creates a duplicate copy of the application, or launches the binary manually from the command line. If they go to the effort of doing that, though, it's a fair bet they know what they're getting into, or at least won't be too surprised if things break, if they do.)
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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 ensure one instance running per session? (From: "jerrychang2000" <email@hidden>)

  • Prev by Date: Re: NSWindowController versus other NIB Owners
  • Next by Date: NSScroller drawArrow:highlights:
  • Previous by thread: How to ensure one instance running per session?
  • Next by thread: NSScroller drawArrow:highlights:
  • Index(es):
    • Date
    • Thread