PDA

View Full Version : Xcode 3.2 - how do I delete recent projects from splash screen?




glossywhite
Aug 31, 2009, 04:32 PM
Hi there Cocoa buffs! :p

Can some kind person, please tell me how I go about removing the cluttered looking list of recent projects from the splash screen that pops up when I start Xcode 3.2?.

I just find it looks a total mess, and in need of a spring clean. I hope I have explained myself clearly, so I have attached a shot, just to clarify. Thankyou all.



kainjow
Aug 31, 2009, 05:13 PM
Looks like the data is located in the Xcode preferences file in NSRecentXCProjectDocuments. However, the data stored is the new 10.6+ URL bookmark, so you'd have to probably write some code to read it. Easiest solution is to just delete the entries associated with the index of the item you want removed.

glossywhite
Aug 31, 2009, 08:19 PM
Looks like the data is located in the Xcode preferences file in NSRecentXCProjectDocuments. However, the data stored is the new 10.6+ URL bookmark, so you'd have to probably write some code to read it. Easiest solution is to just delete the entries associated with the index of the item you want removed.

??? :confused:

glossywhite
Aug 31, 2009, 08:27 PM
Hah! found it! :D :

$ defaults write com.apple.Xcode NSRecentDocumentsLimit 0

0 can be 0-20

Expert Preferences

Xcode maintains a list of "expert" preferences, which are not exposed through the GUI. A full list of these can be found [here], however the most useful are:

defaults write com.apple.XCode XCShowUndoPastSaveWarning NO # Disable "undo past last saved state" warning
defaults write com.apple.Xcode PBXBuildFailureSound /path/to/sound # Sound to play on build failure
defaults write com.apple.Xcode PBXBuildSuccessSound /path/to/sound # Sound to play on build success
defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES # Enable gdb logging (to capture gdb problems for Radar)
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions # Customise template macros (e.g., change "ORGANIZATIONNAME")
defaults write com.apple.Xcode NSRecentDocumentsLimit 20 # Show 20 recent projects (rather than default of 10)

See this:

http://www.youtube.com/watch?v=BMYt_HvlCwc

kainjow
Aug 31, 2009, 08:49 PM
I think that's going to limit how many recent projects Xcode lists. In your case since you set it to 0, it's not going to show any recent projects. Probably not the workaround you wanted I would imagine...

glossywhite
Aug 31, 2009, 08:55 PM
I think that's going to limit how many recent projects Xcode lists. In your case since you set it to 0, it's not going to show any recent projects. Probably not the workaround you wanted I would imagine...

It'll do for now ;)

`lowell`
Sep 3, 2009, 03:07 AM
It'll do for now ;)

You can safely delete the key if you just want to clear it temporarily, Xcode will add it back (blank, of course) on the next launch.

defaults delete com.apple.Xcode NSRecentXCProjectDocuments

iDSD
Apr 3, 2010, 10:27 AM
Open Xcode, leave the splash screen up and choose "File", "Open Recent Projects", "Clear Menu" will remove all from the list and let you start over.