Reputation: 2042
When you load up xcode it tells what the recent files/projects you worked on are. Where does Xcode store this information?
Upvotes: 0
Views: 4093
Reputation: 11114
I don't know if that's what the question meant but i was looking to add image and needed the project external directory so this is how i found it in a really simple way:
you can see the full path in the right side of the screen when you click like mine was images:
/Users/user_name/Desktop/app_name
the first / can tell you it's a unix based system
and you can use the finder in mac to find this location. That's what it's for.
Upvotes: 0
Reputation: 928
I believe they're stored in com.apple.Xcode NSRecentXCProjectDocuments
. This is part of the "Expert" preferences, which are not exposed through the GUI.
This may vary slightly based on what you are trying to do. For example, $ defaults write com.apple.Xcode NSRecentDocumentsLimit 20
will show 20 recent projects (rather than the default 10).
As for accessing the list itself, the only thing I could find was the following code in the Quick Search Box source code (though it looks like it might require an external library):
if ([appIdentifier isEqualToString:@"com.apple.Xcode"]) {
NSArray *recentXCodeProjects
= GTMCFAutorelease(
CFPreferencesCopyValue(CFSTR("NSRecentXCProjectDocuments"),
(CFStringRef)appIdentifier,
kCFPreferencesCurrentUser,
kCFPreferencesAnyHost));
Upvotes: 1