Re: Determine if only single instance is running.

2010-02-22 Thread Sean McBride
On 2/22/10 1:21 PM, Kyle Sluder said: >> Still i am able to launch multiple instance of the same application. > >How are you going to deal with Fast User Switching? LSMultipleInstancesProhibited was added to deal with fast user switching. It should be working for the OP, works for me: L

Re: Determine if only single instance is running.

2010-02-22 Thread Kyle Sluder
On Sun, Feb 21, 2010 at 9:59 PM, Poonam Virupaxi Shigihalli wrote: > Still i am able to launch multiple instance of the same application. How are you going to deal with Fast User Switching? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Determine if only single instance is running.

2010-02-22 Thread Michael Vannorsdel
When I have a process that I really don't want running more than once (some people will run copies or use LaunchServices to launch multiples) I register a named mach port with NSConnection. When when an instance launches it checks for that connection and if it exists the new instance exits

Re: Determine if only single instance is running.

2010-02-22 Thread David M. Cotter
kinda carboney but it think it should work boolGetIndProcessType( OSType typeToFind, OSType creatorToFind, ProcessSerialNumber *psnP, short

Re: Determine if only single instance is running.

2010-02-22 Thread Mike Abdullah
Hw are you going about launching this app? On 22 Feb 2010, at 05:59, Poonam Virupaxi Shigihalli wrote: > > Hi list, > > Is there a way to check an application instance is running. I tried enabling > application prohibits multiple instance in info.plist. > Still i am able to launch multiple ins

Determine if only single instance is running.

2010-02-21 Thread Poonam Virupaxi Shigihalli
Hi list, Is there a way to check an application instance is running. I tried enabling application prohibits multiple instance in info.plist. Still i am able to launch multiple instance of the same application. Thanks, Poonam ___ Cocoa-dev mailing li