Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
I am using mutex objects in C# to create single instance of the application. I will try to create a mutex object in main, if already created, it will return displaying message "Another instance is running".
I would like to know the euqivalent of mutex in Cocoa. I couldn't find the equivalent of mutex in documentation. Or any other way is there to create single instance of application in Mac programming.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
The very first result on Google for "Cocoa Mutex" returns the Apple documentation on the very subject.

Seriously: next time actually try searching instead of lying to us and saying you have.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.