Created
February 29, 2012 22:01
-
-
Save ivira/1944788 to your computer and use it in GitHub Desktop.
Check if Sandbox is ON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to determine whether you are running in the sandbox, compare the result of: | |
NSHomeDirectory (); | |
with: | |
struct passwd *userInfo = getpwuid(getuid()); | |
NSString *homeDirectory = [NSString stringWithUTF8String:userInfo->pw_dir]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment