Trying to create some alias file into a directory, but I got NSCocoaErrorDomain - code: 512. I have read and write access to the source directory, but no write access to the destination directory.
Source directory: - source file
Destination directory: - alias (links to the source file)
NSError *error = nil;
NSData *data = [src bookmarkDataWithOptions:NSURLBookmarkCreationWithSecurityScope
includingResourceValuesForKeys:nil
relativeToURL:nil
error:&error];
if(data != nil)
[NSURL writeBookmarkData:data toURL:dest options:NSURLBookmarkCreationWithSecurityScope error:&error];
If I create a folder or a file manually inside the destination directory, OS X asks me for the admin password: