Home

Awesome

LetsMove

A sample project that demonstrates how to move a running Mac OS X application to the Applications folder.

Screenshot

Requirements

Builds and runs on Mac OS X 10.6 or higher. Does NOT support sandboxed applications.

Usage

Option 1:

Build then embed LetsMove.framework into your app.

Option 2:

Copy the following files into your project:

If your project has ARC enabled, you'll want to disable ARC on the above files. You can do so by adding -fno-objc-arc compiler flag to your PFMoveApplication.m source file. See http://stackoverflow.com/questions/6646052/how-can-i-disable-arc-for-a-single-file-in-a-project/6658549#6658549

If your application is localized, also copy the 'MoveApplication.string' files into your project.

Link your application against Security.framework.

In your app delegate's "-[applicationWillFinishLaunching:]" method, call the PFMoveToApplicationsFolderIfNecessary function at the very top.

License

Public domain

Version History

Code Contributors:

Translators:

Carthage compatible