Pull from Documents folder instead of Resources folder

View previous topic View next topic Go down

Pull from Documents folder instead of Resources folder

Post  chondrite on Mon Aug 17, 2009 10:06 pm

Hi again,

Do I need to change anything in XCode so my app looks for assets in Documents instead of Resources?


Thanks!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: Pull from Documents folder instead of Resources folder

Post  sio2interactive on Tue Aug 18, 2009 12:01 am

Not in XCode in the code... you need to get the document folder and get read access on the file. Check the source of the MeditationGarden...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Pull from Documents folder instead of Resources folder

Post  cybergreg on Tue Aug 18, 2009 6:14 am

The Apple developer site has examples for this. You should also know that what you include in your "Resources" folder is what is "bundled" inside your application (.app). When your application is installed there will be nothing in your Documents (or any other sandbox folders). You will have to copy (or create) your data files and write them into the Documents folder from inside your app.

Good luck

PS The format ROm has created with SIO2 is great, I strongly suggest you use it.
:-)
avatar
cybergreg

Posts : 21
Join date : 2009-07-21
Location : SoCal, USA

View user profile

Back to top Go down

Re: Pull from Documents folder instead of Resources folder

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum