Re: The double-folder thing ?
Re: The double-folder thing ?
- Subject: Re: The double-folder thing ?
- From: Matt Neuburg <email@hidden>
- Date: Thu, 08 Mar 2012 20:13:54 -0800
On Mon, 05 Mar 2012 00:17:17 -0800, Quincey Morris <email@hidden> said:
>1. When you first create the project, you can move the *contents* of the outer project folder anywhere you like**, because at that point everything in the project is relative to the project file, not the folder that contains it.
I'm not sure what you mean by "relative to the project file". Things are not marked "relative to project" but "relative to group". Maybe this isn't the same issue, but that's the thing that I find daunting.
If I create a new Xcode project called Crud, I get an outer Crud folder containing the project file and an inner Crud folder; the code files are in the inner Crud folder. Meanwhile, the project navigator shows me this:
Crud [project]
Crud [relative to group, represents actual inner Crud folder on disk]
AppDelegate.h [relative to group]
AppDelegate.m [relative to group]
etc.
The problem here is that the correspondence between the second Crud (the group "folder") and the Crud folder on disk is real. On the one hand in Xcode it's "just a group", so within Xcode you can move files out of it with no harm done (nothing moves on disk, and nothing is lost track of). On the other hand in the Finder it's real, so if you try to do any reorganization there things go pear-shaped: for example, if you were to rename Crud (the inner Crud) in the Finder, Xcode would lose track of all the code files constituting the project. Similarly, if you were to move a code file that's in the inner Crud folder out of it, Xcode would lose track of it.
It's that special status of that inner Crud folder that gives people trouble. Other groups in the project navigation are just groups; they correspond to nothing in the Finder world. But the Crud group, although it isn't blue (it's not a folder reference), corresponds to the Crud folder; it has a path. And all the files participate in that path (as illustrated by the fact that if you rename the Crud folder on disk, all is lost).
It's not hard to see how that fact could cause a user to freeze up. Once you've seen references go red in the project navigator you're very scared to touch anything ever again.
m.
PS It might also help if the location "relative to group" were a bit more informative. I always feeling like asking: really? What group would that be? And what's the "location" of the group itself to which you are relative? All quite confusing really.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden