Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 275651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:47:57+00:00 2026-05-12T00:47:57+00:00

I am relatively new to Xcode and one thing that has bothered me is

  • 0

I am relatively new to Xcode and one thing that has bothered me is that when I add a resource it gets added to the top level directory of my project directory. So for example, at the moment, all of my images are at the top level directory and it makes things look messy. I rather would’ve liked, for example, to have an images/ folder and then sub-folders within that to store images for certain things, like tab-bar/ icons. Is this possible? Or is it convention to just keep everything in the top level directory?

Someone in the #iphonedev channel at freenode told me something about the build process rule or something, it just seemed too complicated I figured I shouldn’t bother, and that most people just kept things at their root directory considering the complexity of the solution. Perhaps it isn’t all that complicated though, I just felt it should be easier.

For example I would also like to have a sub-folder for my views, like views/ that stores all of my nib files; currently they are all in the top level directory. And the same goes for my property lists.

I would appreciate it if you could tell me what the convention is, I doubt it is to just store everything in the top level directory. And I’m referring to the actual file system, not simply creating ‘virtual folders’ in Xcode to organize things, because the top level directory of my project will still be a mess. And if it is possible to organize things better, I would appreciate any detailed help on how to accomplish it.

I think I have heard that in the final build, the entire file structure gets squashed to the root directory. I don’t mind so much about that, I just want things to be organized while I am working on my project. I think this is where that ‘build rule’ thing comes in, but I’m not sure how or what to do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:47:57+00:00Added an answer on May 12, 2026 at 12:47 am

    Here’s a little more explanation of Graham’s suggestion:

    • Create an images directory
    • Create an images Group in Xcode
    • Right-click the group and Get Info
    • “Choose…” to set the group’s directory to be your images directory

    Now, anything you put in the images group will automatically go into the images directory. That’s true if you drag/drop from within Xcode, from other other projects or from Finder, or if you Add New… by right-clicking on the images directory. (This assumes you leave the default setting of “relative to group” in the info pane.)

    This will work for anything you put in that group (NIBs, etc).

    For imageNamed:, you just give the base name.

    My recommendation is to keep a small number of filesystem directories, and mostly organize with groups in Xcode. But I agree, a small number of filesystem directories are very helpful. I put all my source code in a Classes directory (just because Apple used that name; I would have picked “Sources” or something). I also have a Resources directory at the top level and generally create images and audio directories under that. But I don’t generally create a lots of real directories beyond that. This keeps things a bit tidier, but makes it easier to grep and wildcard things with the shell.

    Beyond shell tools, the big advantage of organizing by groups rather than directories is the impact on version control systems like subversion. When you suddenly realize that your “Views” group is way too big, you can reorganize it without taking the huge impact of moving files around.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Being relatively new to the .net game, I was wondering, has anyone had any
Relatively new to rails and trying to model a very simple family tree with
Being relatively new to functional programming, I expend lots of energy wondering is this
Caveat: I'm relatively new to coding as well as TextMate , so apologies if
I'm relatively new to J2ME and about to begin my first serious project. My
I am relatively new to web services and am wondering what the standard best
I'm relatively new to web application programming so I hope this question isn't too
I'm relatively new to Python and am having problems programming with Scapy, the Python
I'm relatively new to Nant, what i'd like to do is have a task
I'm relatively new to Mercurial and my team is trying it out right now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.