sandbox

Testing in-app purchase after going live

陌路散爱 提交于 2020-01-04 14:38:11
问题 I would like to make a contest for my iPhone and iPad apps users. I would like to give some bonus content for winners as a reward. Normally that content is paid (for eg. additional levels) and it's available via in-app purchase, so I'm trying to find any way to give them something like normal promo codes. (Promo codes are not working with in-app purchase). Is that possible to set up Test Accounts for testing in app purchase after going live (my apps are already in the App Store), so I could

OS X App Sandboxing and arbitrary files access - Update to Document-based?

懵懂的女人 提交于 2020-01-04 06:31:29
问题 My OS X app (currently not sandboxed) accesses files contained inside a directory set by the user (one chooses the path with a NSOpenPanel and a reference to this path is kept throughout execution). The list of files is generated via NSDirectoryEnumerator and I then read from and write to those files using AVAsset and taglib (in C++ with a bridging header) respectively. As expected, enabling Sandboxing in Xcode rendered the app useless, the list of files given by NSDirectoryEnumerator is

Replace a file using the NSSavePanel in a sandboxed application

我怕爱的太早我们不能终老 提交于 2020-01-04 06:11:42
问题 I create a NSSavePanel using this code: NSSavePanel *savePanel = [NSSavePanel savePanel]; savePanel.delegate = self; savePanel.directoryURL = ...; savePanel.nameFieldStringValue = ...; [savePanel beginSheetModalForWindow:self.window completionHandler:^(NSInteger returnCode) { if (returnCode == NSFileHandlingPanelOKButton) { // the completion handler } }]; If in the save panel the user select an already existing file, appears the alert box "“XXX” already exists. Do you want to replace it?". If

Replace a file using the NSSavePanel in a sandboxed application

眉间皱痕 提交于 2020-01-04 06:11:09
问题 I create a NSSavePanel using this code: NSSavePanel *savePanel = [NSSavePanel savePanel]; savePanel.delegate = self; savePanel.directoryURL = ...; savePanel.nameFieldStringValue = ...; [savePanel beginSheetModalForWindow:self.window completionHandler:^(NSInteger returnCode) { if (returnCode == NSFileHandlingPanelOKButton) { // the completion handler } }]; If in the save panel the user select an already existing file, appears the alert box "“XXX” already exists. Do you want to replace it?". If

AIR: securityError on OSX (but not on Windows) with URLStream()

社会主义新天地 提交于 2020-01-03 05:22:09
问题 I'm using URLStream to load a file from the harddisk (and I'd like to continue to use URLStream to do so). The file is located in "app-storage:/myfolder/myFile.zip" so I use var f:File = new File("app-storage:/myfolder/myFile.zip"); myStream.load(new URLRequest(f.nativePath)); on Windows this seems to work without problems - but on OS X the URLStream dispatches a SecurityErrorEvent.SECURITY_ERROR with the message: Error #2032: Stream Error. URL: app:/Users/myUserName/Library/Preferences

How to retrieve the sandbox of my app using Eclipse from my device?

≯℡__Kan透↙ 提交于 2020-01-02 10:24:12
问题 I have an android app which uses sharedPreferences . I run the app in my android device using Eclipse I would like to pull the entire sandbox from the device to desktop so that I can manually see the contents of the sharedPreferences. I clicked DDMS and clicked FileExplorer and saw data folder But its empty. Any help is appreciated ! Thanks in advance ! 回答1: If device is rooted may be it's possible. But in general you can not retrieve the sandbox of your app from your device to pc. But you

How to disable sandbox mode in new facebook app developer?

半城伤御伤魂 提交于 2019-12-31 18:43:41
问题 Question 1: Is this the correct way to to disable sandbox mode in the new facebook app developer dashboard? a) Go to the "Status & Review" section. b) Select "Yes" after the text "Do you want to make this app and all its live features available to the general public?" Question 2: I created my fb app so that I can cross-post blog entries from my WordPress blog to my facebook wall. If I click "Yes" after "Do you want to make this app and all its live features available to the general public?"

How to disable sandbox mode in new facebook app developer?

吃可爱长大的小学妹 提交于 2019-12-31 18:41:30
问题 Question 1: Is this the correct way to to disable sandbox mode in the new facebook app developer dashboard? a) Go to the "Status & Review" section. b) Select "Yes" after the text "Do you want to make this app and all its live features available to the general public?" Question 2: I created my fb app so that I can cross-post blog entries from my WordPress blog to my facebook wall. If I click "Yes" after "Do you want to make this app and all its live features available to the general public?"

Javascript Sandbox Pattern example implementation

匆匆过客 提交于 2019-12-31 09:44:13
问题 On Page 101 of Stoyan Stefanov's great book "JavaScript Patterns" he explains the sandbox pattern. I liked his book much but I really missed some real life examples here and then to better understand what he talks about. Like the sandbox pattern! I'm looking for a real life working implementation, like a copy&paste starting point, just a simple example that will work to fully understand it. Is there any? 回答1: I've simplified Stoyan's example in an attempt to make it easier to understand what

Can a Thread be executed as another user? (.NET 2.0/3.5)

↘锁芯ラ 提交于 2019-12-30 11:10:06
问题 I have a C# application the performs some runtime compilation of source files containing calculations into dynamic assemblies. Obviously this presents a serious security issue. From the following 'formula', the code below would be generated, and a dynamic assembly created: Formula: Int32 _index = value.LastIndexOf('.'); String _retVal = value.Substring(_index + 1); return _retVal; Code Generated: using System; namespace Dynamics { public class Evaluator { public Object Evaluate(String value)