Macos – Mac open multiple instance of application

dockmacos

Mac OS X 10.6

I am new to Mac. In Windows, we used to open multiple Visual Studio or Eclipse instance and switch to each other by clicking icons on taskbar.

I found this thread shows how to create a customized dock icon to launch multiple Xcode, and then we can get several icons on Dock like taskbar in Windows.

I was wondering in Mac world, is it prefer to open multiple instance of Xcode or just have one Xcode with multiple projects opened. What is the most convenient way to switch back and forth?

Best Answer

My intuition on this is that OS X and its applications aren't designed to operate in multiple instances. When two processes are making changes to the same preference .plist files concurrently, you might get unintended behavior. Some applications are designed to work in a "project library" setup, like GarageBand and the new iMovie (these applications can only work on one project at a time), but if Xcode allows you to open multiple projects at the same time, that's definitely the way to go. Almost all document-based applications work this way, ex: Office, TextEdit, Safari.

If you're new to Mac, it will soon become apparent that a window is not the same thing as a running application. A single application may have many windows at a time, and closing all of those windows individually does not necessarily close the application (though this will occasionally be the case, see System Preferences.) Instead of switching between windows with alt-tab, you switch between applications with Command-Tab, and switch between that application's open windows with Command-` (backtick, on the ~ key). When closing applications, get into the habit of choosing quit from the application menu (or hitting Command-Q) instead of x-ing out of every open window. In most cases this would leave the application still running with 0 open windows. Running applications are denoted with a glowing light under their dock icons, and will also show up in the Command-Tab application switcher.

Protip: to quit multiple applications quickly, hold down Command, use Tab or shift-Tab to select each application you want to close, and whack q to send each one a quit command. Then release tab to switch to the application you want to use when it is selected.

Related Question