Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
I'm just trying to get some confirmation on Sandboxing. I understand exactly why it's been put in place and the principle behind it.
As I start to near the release of my first Mac App I kept putting off sandboxing as it sounded rather complicated and thought I'll worry about it nearer the time. I watched a couple of the Apple videos and read up on some of the documentation (not all) and thought I'd try and add it to my app!
I turned on sandboxing in Xcode, didn't specify any entitlements as they didn't really relate to my app and the entitlements certificate popped up on the left and ran my app....that was it, all ran fine without issues.
That's where I got confused...surely it can't be that simple?! My app saves data in the background, no user input to save, it just happens seamlessly. Anyway I checked /Users/whoever/Library/Containers and there was my app named container folder and the relevant data was saved there (although of course that wasn't the exact path I specified as the save location in my app). I closed my app, reopened it and sure enough the saved data was still there.
IS THAT IT? Does that now mean my app is sandboxed or am I missing something here?
I'm wondering the same as you, my next app would not use anything special other than saving it's own data on it's container, so for what I have read, what you say are the only steps to do for sandboxing. Hope someone can confirm us, or perhaps post this question on Apple forums.
As soon as I added sandboxing and without adding a different path to the above it now saves in ~/Library/Containers/MyDeveloperName/Data/Library/ApplicationSupport/AppName/SavedData
So I presume it's all set up for me pretty much automatically.
Having said that I haven't added any preferences to the app yet, I'm thinking of adding 'Launch App At Startup' which may cause problems with sandboxing!
As soon as I added sandboxing and without adding a different path to the above it now saves in ~/Library/Containers/MyDeveloperName/Data/Library/ApplicationSupport/AppName/SavedData
So I presume it's all set up for me pretty much automatically.
Having said that I haven't added any preferences to the app yet, I'm thinking of adding 'Launch App At Startup' which may cause problems with sandboxing!
If you're only writing there and the preferences , you should not have any problem.
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeIf you just write to the app support folder, sandboxing does not affect you. It's transparent.
If begins to be a problem if you need to read/write outside of your app's folders (app Support, cache, preferences, etc)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeAs soon as I added sandboxing and without adding a different path to the above it now saves in ~/Library/Containers/MyDeveloperName/Data/Library/ApplicationSupport/AppName/SavedData
So I presume it's all set up for me pretty much automatically.
Having said that I haven't added any preferences to the app yet, I'm thinking of adding 'Launch App At Startup' which may cause problems with sandboxing!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomehttp://vertostudio.com/
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome