Sandboxing with NSXPCConnection

Last Revision:
Version 1.0, 2012-08-21
Illustrates Sandboxing and Interprocess Communication using NSXPCConnection.
Build Requirements:
Xcode 4.4 or later, OS X v10.8 or later.
Runtime Requirements:
OS X v10.8 or later.

"SandboxingAndNSXPCConnection" shows how the security concept of least privilege separation can be implemented using App Sandboxing and XPC interprocess communication (IPC). The goal of least privilege separation is to reduce the amount of code that runs with special privileges. This is achieved in this sample code by splitting the application into separate processes, each with the least amount of privilege necessary to complete its job. This sample uses NSXPCConnection, which allows you to use your own objects and interfaces when communicating between processes in your application.