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

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2011, 10:00 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Location: Bilbao, Spain
Posts: 8
shadowfax is on a distinguished road
Default Newbie question about plists

Probablly this is a really dumb question...

For what I've heard, if you insert a preloaded plist file into the bundle the user won't be able to edit that plist unless you copy it to a writtable path, such as documents. Is that correct?

I've read some plist may not be updated through a patch (Updated application) in the App Store. I'm a little messed up with this one. Does this apply to the ones in the Documents folder or also to the ones in the bundle?

For example, my application makes use of a plist to populate some UITableView menus through out the application. It will also populate some UIView entries. If I wish to add, remove, or update some of the menus or the information it displays, would I be able to do so submitting the new version to the App Store with just a couple of changes to the plists? Will those changes reflect on my application or will it use the old plists?

Thanks, and sorry for what probably is the dumbest question ever asked
shadowfax is offline   Reply With Quote
Old 07-14-2011, 10:27 PM   #2 (permalink)
simpsonaty Apps
 
simpsonaty's Avatar
 
Join Date: Dec 2009
Location: Australia
Posts: 93
simpsonaty is on a distinguished road
Default

Let's clear some things up to make it easier for you:

• Your app's Info.plist is not editable by the user, full stop.
• If you place a property list in the Documents folder, the user can edit it.
• If you place a property list in the app's bundle, the user cannot edit it.
• When you update an application in the App Store, everything but the Documents folder is overwritten. Anything in the Documents folder that you have will not change between versions.

Does that answer your question?
__________________
http://simpsonatyapps.com
... yep, that's our site.
simpsonaty is offline   Reply With Quote
Old 07-15-2011, 12:25 AM   #3 (permalink)
Registered Member
 
Objective Zero's Avatar
 
Join Date: Oct 2010
Posts: 1,210
Objective Zero is on a distinguished road
Default

And I think NSUserDefaults don't get erased when the app is updated too. Can someone clarify this for me?
__________________
Questions?

Check out my OCR app!
http://itunes.apple.com/app/ocr-pro/id486512712?mt=8
Objective Zero is offline   Reply With Quote
Old 07-15-2011, 10:28 PM   #4 (permalink)
Registered Member
 
Join Date: Jul 2011
Location: Bilbao, Spain
Posts: 8
shadowfax is on a distinguished road
Default

Quote:
Originally Posted by simpsonaty View Post
Let's clear some things up to make it easier for you:

• Your app's Info.plist is not editable by the user, full stop.
• If you place a property list in the Documents folder, the user can edit it.
• If you place a property list in the app's bundle, the user cannot edit it.
• When you update an application in the App Store, everything but the Documents folder is overwritten. Anything in the Documents folder that you have will not change between versions.

Does that answer your question?
Thanks,

Very schematic and clear reply. Ir sure does take my worries away
shadowfax 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: 366
9 members and 357 guests
apatsufas, chemistry, Kirkout, leostc, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

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