Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Xcode from memorize my previous opened projects

Tags:

xcode

This really drives me bunker! At any time, I work on multiple projects. When I quit Xcode, the next time I open Xcode, all my projects from the day before open automatically one by one.

Often I end up editing the wrong file, AHHHHHHHHHHH!! The only way I could stop this behavior is by closing all projects before quitting Xcode, go to Open Recent, select Clear Menu, and go to Organizer to delete all projects one by one. There must be a easier way to stop Xcode from "memorizing" my projects.

I had asked Apple numerous times, but Apple people kept telling me to go to Xcode Preferences to turn it off and often they seem to have confused it with the Mountain Lion's Reopen Preferences which I had it turned off. I found no such option in my Xcode 4.5.2 and Apple people insist it is there.

Does any of you have that option on your Xcode 4.5.2? Or did Apple single me out to omit that option, just to piss me off? Mostly importantly, how can I stop this nuisance? When I restart the Xcode, I want a clean start >:|

Thanks.

like image 607
user1974342 Avatar asked Jan 13 '13 16:01

user1974342


People also ask

How do I clear my recent projects in Xcode?

(Go to File > Open Recent > Clear Menu. This will clear all of your recent projects from this menu and the startup menu.)

How do I stop a build in Xcode?

Thankfully, you can disable these automatic rebuilds by opening any file in Interface Builder, going to Editor menu and unchecking Automatically Refresh Views. After this change, you'll now have to manually trigger an IB-specific build when you want to see the preview of your @IBDesignable views.

How do I open a project in Xcode?

Importing into XcodeOpen Xcode and select Open Another Project or File, Open. Open the folder you unzipped from your Dropsource download and locate the file with “. xcodeproj” extension in the root directory. Select the file and click Open.


2 Answers

You can modify the setting whether an application reloads its windows as shown in this question.

Xcode's identifier is com.apple.dt.Xcode so the command for changing the default is

defaults write com.apple.dt.Xcode NSQuitAlwaysKeepsWindows -bool NO

In my testing it can take one or two re-launches to stick. If you just want to close all windows once you can also use Quit and Close All Windows (⌘⌥Q)

like image 68
Seán Labastille Avatar answered Oct 06 '22 09:10

Seán Labastille


System Preferences > General > Close windows when quitting an application

Here you can find a checkbox to disable the "feature". Also, see this similar question.

like image 23
bibo bode Avatar answered Oct 06 '22 11:10

bibo bode