Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 06-05-2010, 02:31 AM   #1 (permalink)
Registered Member
 
viperfan91's Avatar
 
Join Date: Apr 2010
Location: NorCal
Age: 21
Posts: 19
viperfan91 is on a distinguished road
Default Documents Directory?

I am attempting to list the contents of the Documents directory of my app However, I don't know how to put a text file in the directory so that it is there whenever someone were to install the app.

Does that make sense?

Any help appreciated...
viperfan91 is offline   Reply With Quote
Old 06-05-2010, 02:41 AM   #2 (permalink)
Registered Member
 
swestland's Avatar
 
Join Date: Apr 2010
Location: Leeds UK
Posts: 30
swestland is on a distinguished road
Default

Quote:
Originally Posted by viperfan91 View Post
I am attempting to list the contents of the Documents directory of my app However, I don't know how to put a text file in the directory so that it is there whenever someone were to install the app.

Does that make sense?

Any help appreciated...
Files that are added to your project are automatically available as part of the bundle when you install the app.
Steve
swestland is offline   Reply With Quote
Old 06-08-2010, 02:59 PM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Ypsilanti, Michigan
Age: 63
Posts: 1,549
RLScott is on a distinguished road
Default

Quote:
Originally Posted by viperfan91 View Post
I am attempting to list the contents of the Documents directory of my app However, I don't know how to put a text file in the directory so that it is there whenever someone were to install the app.
You have to detect when your app is run for the first time after an install, then then in that case only, copy the needed files from the app bundle to the documents directory. You cannot make them "just show up". You have to explicitly copy them over yourself.

Robert Scott
Ypsilanti, MI
RLScott is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 357
6 members and 351 guests
.Snipe, AragornSG, baja_yu, guusleijsten, NSString, Paul Slocum
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,645
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, leighec68
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:32 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0