Advertisement
Guest User

nsfileprotection

a guest
Dec 22nd, 2012
4,137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [[NSFileManager defaultManager] createFileAtPath:[self filePath]
  2.                 contents:[@"super secret file contents" dataUsingEncoding:NSUTF8StringEncoding]
  3.                 attributes:[NSDictionary dictionaryWithObject:NSFileProtectionComplete
  4.                                                        forKey:NSFileProtectionKey]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement