Listed on


Replacing Cocoa applications with a new instance

Sometimes you need to start a Cocoa application and have it replace a previously running instance of itself. In the case of the application that we are writing it is invoked by the open command line command and we then want it to replace a previously running version of the program. If the application is activated from the GUI we want the default behaviour going to the open application to be preserved. Read More...