PDA

View Full Version : Should the files be saved inside the "Library" folder ?




aneuryzma
May 22, 2011, 10:15 AM
I need to store some images in my application.

Should the files be saved inside the "Library" folder ?

According to Apple documentation, the "Document" folder is for user files, while "Library" folder is for application files.

Thanks



Hansr
May 22, 2011, 10:36 AM
You should put them inside the application bundle under resources.

aneuryzma
May 22, 2011, 10:39 AM
OK. Then, what's Library for ?

From Apple documentation, it is a directory for application files. For what should I use it and which files ?

Hansr
May 22, 2011, 10:46 AM
~/Library/Application Support/APP should be used for non constant files used by the application, which can be created from the application or unloaded from the binary on first run. Databases, addons, settings other than the main prefs file etc.

PhoneyDeveloper
May 22, 2011, 11:50 AM
Read the section "A few important application directories" in this document

http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/RuntimeEnvironment/RuntimeEnvironment.html