I've tried both. With the yellow icon (a "group") I need to manually add .rb files to the project when I create them in Vim. However, the upside is that the files are copied to the correct place in the build (the project root), so they are correctly found by rb_main.rb at runtime.
With the blue icon (the "folder reference") the files are automatically added to the project when I create them in Vim, but the entire folder is actually copied to the build which means that rb_main.rb doesn't find them when it tries to include everything. Ideally, what I'd like to do is use a folder reference and then just set up some build script that will copy everything to the project root when I build. -- Michael Jackson http://mjijackson.com @mjijackson On Wed, Jul 28, 2010 at 5:03 PM, Nick Ludlam <n...@recoil.org> wrote: > On 27 Jul 2010, at 18:25, Michael Jackson wrote: > >> I tried adding a folder to the root of my project called "Classes" in >> which I put all of my Ruby code. I then added that folder reference to >> the project. However, when I build the project the files are copied to >> a "Classes" folder in the build instead of to the project root where >> they can be found by main.rb. > > > Hi Michael, > In the XCode project tree, does your 'Classes' folder have a blue or yellow > icon? There are two types of folders that you can add to the source tree. > Blue folders (folder references) are 'physical' in the sense that the > structure will be preserved when copied to the Resources folder of your > application's bundle. > > Yellow folders (groups) are more like logical folders for partitioning your > project files within XCode. They don't strictly enforce or correspond to any > structure on disk unless you specifically set it up that way, and anything > under these folders will become flattened into the final Resources > destination folder. > > Within my current MacRuby project, I only use the blue folder references for > any packaged gems that I want to include. All normal ruby project files are > in yellow group folders. > > There's a good post about it at > http://iphonedevelopertips.com/xcode/xcode-folders-and-the-file-system-part-1.html > > Nick > > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel