App Sandboxing with InterBase ToGo for Mac OS X

From RAD Studio
Jump to: navigation, search

Go Up to Mac OS X Application Development

Go Up to InterBase ToGo

If you want to submit your Mac OS X application to the Mac App Store, you must sandbox your application. Sandboxing restricts the access of the application to the system ensuring that apps are safe and do not contain malware.

From Interbase XE7 Update 2 version, you can sandbox your RAD Studio Delphi/C++ database applications for Mac OS X. So, if you have installed RAD Studio Seattle including Interbase XE7 Update 2 or higher, you can build InterBase ToGo apps enabled for Mac App Store.

How to Sandbox Your Mac OS X Application

To know more about how to use an InterBase database in your RAD Studio application, please follow this tutorial.

Once you have your application using an InterBase database, you should:

Then, you are ready to generate a sandboxed application package file of your Mac OS X application. Please, visit Sandboxing Your Mac OSX Application to know how to obtain the sandboxed package of your application.

File Location in OS X Deployment for Sandboxed Apps

To support OS X sandbox applications, some files need to be copied to a specific location. This location is the sandbox directory of the application. When you launch your application, the operating system creates a special directory that is used by your app, called container. Each user gets an individual container for your app in their home directory. The app has read and write access to the container without restrictions.

InterBase files should be placed in Contents\Resouces\StartUp\ when you select Mac OS X as the target platform (using Application Store configuration). On Mac OS X, the RAD Studio Delphi/C++ RTL automatically copies the files contained under the remote path StartUp to the ~/Library/Containers folder (the container). The Resources folder includes the data files that live outside your application executable file.

To check this location, open the Deployment Manager by selecting Project > Deployment.

See how the Remote Path of the InterBase files of a sandboxed app for OS X platform is Contents\Resouces\StartUp\.


See Also