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 627165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:29:56+00:00 2026-05-13T19:29:56+00:00

I am trying to understand how to create my own directory tree and access

  • 0

I am trying to understand how to create my own directory tree and access it from my application.

I am doing some kind of learning program and want to create a directory structure like this:

-MyLessonsDirectory
--LessonDirectory_1
---Step_1
---Step_2
---Step_3
--LessonDirectory_2
---Step_1
---Step_2
---Step_3
.
.
and so on

In each “Step”-directory I will have specific content for that step of the lesson. The content is added by me while developing. Hence, I don’t want to create the structure and content from within the application, just access it and reading the content of the directories. If I can create this kind of structure and use it it will be very easy to create a nice design that makes it easy to create new lessons in my app.

What I cannot figure out is where I should create those directories in the file-structure in xCode and what is the path to those directories from my application.

  • 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-13T19:29:56+00:00Added an answer on May 13, 2026 at 7:29 pm

    On the iPhone, you only have access to the apps own directories. The best place to put practice directories in the Documents folder in the app directory.

    This…

    NSString *dp=[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
    

    … gives you the path to the directory folder which you can then hand off to the NSFileManager.

    If you want to see the directory structure visually, run the app on the simulator and look in

    ~/Library/Application Support/iPhone Simulator/User/Applications
    

    The app will be in one of the folders with the gibberish UUID name. You can see the directories and files there in the Finder.

    I would add that the iPhone already has most of the directories you might practically need. You have preferences, cache, tmp, Documents etc all in place.

    Edit01:

    What I want to do is to add content
    manually before I start the
    application. Then, from within the
    application I will read the content I
    added before starting the application.

    You cannot alter the default directory structure and you have absolutely no control over how the application or its directories are installed. iPhone apps do not have external support files of any kind. Every thing is inside the app bundle.

    However, the app bundle is really just a directory so you can stuff things inside it and copy them out into one of the default directories the first time the app runs. You can write anything you want to the documents directory.

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

Sidebar

Related Questions

So I'm trying to create my own BST for a spellchecker because I want
I'm trying to understand if it's possible to create a set of variables that
I'm trying to create a simple example to understand how to store then retrieve
Trying to create my own custom AttachedProperty for a WPF DependencyObject failed to actually
I created my own module called cssswitch. I'm trying to create my own html
I am trying to understand how to create a complex POCO which in the
I'm trying to create my own search engine for a site I'm working on
I am trying to create an app in Qt/C++ with Qt4.5 and want the
I'm trying to understand what kind of memory hit I'll incur by creating a
Trying to understand something. I created a d:\svn\repository on my server. I committed folders

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.