Re: Plan for persisting preferences on iOS applications
Re: Plan for persisting preferences on iOS applications
- Subject: Re: Plan for persisting preferences on iOS applications
- From: Alex Zavatone <email@hidden>
- Date: Wed, 24 Oct 2012 14:05:49 -0400
On Oct 24, 2012, at 1:36 PM, David Duncan wrote:
>> ...
>> That's just amazing. Apple's doc writers need to do a much better job of explaining that even though the app is sandboxed, the sandbox exists outside the application and the app and the sandbox folders sit next to it within a folder that holds them all. Or does it?
>
> Without knowing which documentation you allude to, I can't really say what the issue here is. I can only say that in every document on the sandbox structure that I'm aware of, it shows the application as in the sandbox and next to everything else. If you think something is unclear, feel free to provide feedback or file a bug report.
I'll admit that I poured over the Sandboxing docs about 6 months ago. Not sure what's changed, if anything.
Looking at it from an educated developer perspective, I can see that the current docs make perfect sense. To those who have been using Macs for the past 25 years, but not explicitly coding in OC until the past few, there needs to be a little more detail.
There is a nice illustration at the bottom of the screen here that shows the app structure:
http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/TheiOSEnvironment/TheiOSEnvironment.html
When that illustration is not in front of you, the doc that I read 6 months ago shows the folders that the app has access to under the hierarchy of the app and since the app itself is a folder, it's all to easy to make the mental jump that those folders exist within the app itself.
I'll try to find those docs and offer feedback to make things a little more clear.
Thanks Dave.
>> Since the app itself is referred to as a folder and the Documents, Library and tmp folders for an app belong to that, it's not obvious that the folders sit within a folder that contains the app, but at the same level as the app itself. And with the removal of access to the /preferences folder, it is way too easy to make the assumption that it's impossible to save application specific data that will not persist if the app gets updated.
>>
>> Thank you for making me look at this again. App folder structure is a little more clear to me.
>>
>>
>>
>>
>
> --
> David Duncan
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden