Xcode "Add Files To..." File Sheet Defaults To Wrong Location

Originator:sam
Number:rdar://10533854 Date Originated:06-Dec-2011 01:45 PM
Status:Open Resolved:
Product:Xcode Product Version:4.3.2
Classification: Reproducible:
 
06-Dec-2011 01:45 AM Sam Deane:
Summary:

This bug has been around for a few versions of XCode 4, I don't think it's new to 4.3

When you right click on a group in the project navigator and choose "Add Files To...", in older versions of XCode the open file sheet that is shown would default to the location represented by the group.

This no longer happens - instead it seems to just default to where you last had it.

This is a serious usability issue. 

For example, if you often work with multiple projects that both contain copies a common sub-project, you can easily get yourself into a big mess, thinking that you're adding files from one version of the sub-project when you're actually adding files from the other - thus accidentally creating absolute paths or links to files outside the project scope, and consequently breaking the build.


Steps to Reproduce:

Right-click on an existing group folder (just a normal one, not a folder reference) in an existing project. Add a file to the project using the open file sheet that comes up.

Now open another project, and right-click on an existing group folder in it. 

Expected Results:

The file select sheet that comes up should default to the location represented by the group you right-clicked on.

Actual Results:

The file sheet defaults to the place where you last used it for the previous project.

Regression:

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!