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.