sandbox

What does a Mac sandboxed app get access to when the user selects a folder?

爱⌒轻易说出口 提交于 2019-12-22 04:35:09
问题 I'm reading about Mac app sandboxing and am wondering what exactly happens when a user selects a folder in an NSOpenPanel or NSSavePanel. The “App Sandbox Design Guide” gives the following example: When a user of your app specifies they want to use a file or a folder, the system adds the associated path to your app’s sandbox. Say, for example, a user drags the ~/Documents folder onto your app’s Dock tile (or onto your app’s Finder icon, or into an open window of your app), thereby indicating

Getting path to users Library folder in OS X

痴心易碎 提交于 2019-12-22 04:35:08
问题 I need to open a NSSavePanel with the users Library folder as destination folder. Normally I would do this by entering ~/Library/ in [NSSavePanel beginSheetForDirectory] . This works fine as long as the application is not sandboxed. For sandboxed applications this will result in the NSSavePanel trying to access a folder inside the applications document "box". I cannot refer to /Users/username/Library/ as I do not know the users username at runtime. So how do I link to this path in cocoa? 回答1:

How to make Integration Tests against Google Drive with Service Account without an Enterprise Google account

老子叫甜甜 提交于 2019-12-22 04:06:17
问题 We need a "google drive enterprise sandbox" or some sort of way to Mock a realistic Enterprise Google Drive account. This would make it so that we can simulate service accounts with access to multiple users files over a google enterprise account. We can test a single GoogleDrive user no problem. But the enterprise service accounts with access to multiple users' files is not possible without an enterprise google account which is expensive. Our app has access to google enterprise users files

How an app to know what other apps have been installed in the device [duplicate]

孤者浪人 提交于 2019-12-22 01:49:36
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Get list of installed apps on iphone Is there a way to know what other apps have been installed in an iPhone or other iOS devices?. I know that all ios apps are sandboxed so this may be impossible on a non-jailbroken device. but there is an App can do that.!not jailbroken (see image), How can it know all the apps I have installed? 回答1: I am using iHasApp framework for my projects, and it works fine. You can get

Iframe SandBox is blocking embed object

馋奶兔 提交于 2019-12-21 13:22:32
问题 Hy here is a examle Example Why when i use <IFRAME sandbox="allow-forms allow-scripts" SRC="http://roshare.info/embedx-xcnvxz71l8fb-699x380.html" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=699 HEIGHT=400></IFRAME> sandbox i dont see the player .. i want to use sandbox just to block pop-ups but looks like if i use it i dont see the player is there any allow-objects ? I have also a no sandbox example on that page and it works .. 回答1: You're correct. The sandbox will block

Apple sandbox user logout before production

Deadly 提交于 2019-12-21 09:09:14
问题 I developed a Phonegap iOS app that implements In app purchase. As suggested here, I used a sandbox user in order to test the IAP during the development process in iOS, but i can not find a way to switch back to my personal account to authenticate the application. At the start of the development process, i signed out with my personal account, i didn't login with my sandbox user in General > iTunes & App Store, i started the application and i logged in with my sandbox user from that. It is

iOS in app-purchase receipt validation - sandbox vs production url?

▼魔方 西西 提交于 2019-12-21 05:06:09
问题 I followed Ray Wenderlich's tutorial to implement receipt validation in my app. The code connects to Apple's validation server directly from my app rather than going through my own server. After I submitted my first binary to the AppStore, I tested my app and the in-app purchasing didn't work because I had switched it over from the sandbox URL to the production URL. Will this also fail when they AppStore reviewers test it and therefore be rejected? I've read this post but I'm still very

Running plugins in a sandbox

时间秒杀一切 提交于 2019-12-21 04:18:20
问题 I am designing a system in C/C++ which is extendible with all sort of plugins. There is a well defined C public API which mostly works with (const) char* and other pointer types. The plugins are compiled into .so or .dll files, and the main application loads them upon startup, and later unloads or reloads them upon request. The plugins might come in from various sources, trustable or not so :) Now, I would like to make sure, that if one plugin does something stupid (such as tries to free a

Error while implementing Sandbox: “deny file-read-metadata /Library”

南楼画角 提交于 2019-12-20 19:54:00
问题 I realize that I'm a bit late to the game here in getting sandbox-ready, but so it goes. I'm developing for OS X 10.9. The app displays Calendar event data, but does not allow editing, so I have enabled the Calendars capability. The app works great with sandboxing enabled when I run it from Xcode, but when I export it signed with Developer ID, the app runs, but can't access the Calendar data. What's more, the system never asks me to allow the app to access Calendar data. When I run the app,

Error while implementing Sandbox: “deny file-read-metadata /Library”

China☆狼群 提交于 2019-12-20 19:52:14
问题 I realize that I'm a bit late to the game here in getting sandbox-ready, but so it goes. I'm developing for OS X 10.9. The app displays Calendar event data, but does not allow editing, so I have enabled the Calendars capability. The app works great with sandboxing enabled when I run it from Xcode, but when I export it signed with Developer ID, the app runs, but can't access the Calendar data. What's more, the system never asks me to allow the app to access Calendar data. When I run the app,