Groups and New Folder?

Hi -

Should the New Group dialog make creating a folder the default? After a disaster yesterday I'm thinking No. Especially since this is not XCode's default.

Somehow yesterday I had a Group where I had checked yes to create a folder under a Group that was created under XCode and thus was not a folder. I renamed the parent Group called controller and my project became corrupted.

Project Layout:

AppName
     controller (no folder)
          subgroup (folder by accident in AppCode)

Renamed controller Project corrupted.

I'm thinking this may be a known bug as 1.6.2 disables 'Create the folder' in this use case. 2 1/2 hours lost yesterday trying to get things back.

Dave

10 comments
Comment actions Permalink

Dave,

I'm afraid we cannot reproduce this problem, could you please create a bug report (http://youtrack.jetbrains.com/issues/OC) and describe the steps to reproduce it?
A sample project would be perfect.

0
Comment actions Permalink

Hi -

There's no way to reproduce it now as I can't create a sub-group with a folder under a group that doesn't have a folder. This was possible in previous versions.

Dave

0
Comment actions Permalink

What are your thoughts as to 'Create the folder being on by default since this strays from how xCode works?

Dave

0
Comment actions Permalink

You can create a group with a folder and then move it under the group without a folder.
Anyway, you can file a bug report and explain the steps and that exactly the problem was and we'll try to reproduce.

0
Comment actions Permalink

I believe there a two separate problems here: first, the broken project after renaming a group; second is the default.
For the first we need a steps to reproduce,

As for the second, AppCode tries to keep psysical and logical project structure in sync and that is why the default. That are the pros of not creating a phisycal folder?

0
Comment actions Permalink

If you can get a copy of 1.6.1 and then in xCode create a project and add a group called controllers. Open the project in AppCode and see if you can create a subgroup under controllers call abc with Create the Folder checked.

As for #2, I think anytime you are using a default different from XCode, since we always need to use xCode for xib, datamodels etc..., there is a potential for problems.

Dave

0
Comment actions Permalink

Dave, could you please attach your log file here? (Help -> Reveal log in Finder).
Thank you.

0
Comment actions Permalink

Sure, here you go.

Thanks!



Attachment(s):
Archive.zip
0
Comment actions Permalink

Dave,
unfortunately we weren't able to reproduce the problem with corrupted project.
If you experiecnce it again, or have a change to reproduce it, please file a bug report and give the steps to reproduce.

0
Comment actions Permalink

NO

XCode does it wrong, in that it allows (and even defaults to) groups without folders. This results in a huge mess of files all piling in one directory. It's horrible. File that bug report on XCode, not on AppCode.

AppCode does it right - if there's a group, why shouldn't there be a folder?

Here is what I do:
- I create groups in AppCode
- I create folders on the disk, and drag them into XCode to create groups (those groups then have folders...)

Groups without folders is IMO the worst feature in XCode. XCode actively encourages you to create a horrible mess in your file system - why I don't know... it's bad enough that Objective C doesn't have packages...

0

Please sign in to leave a comment.