I have a problem. I have created an IOS application that will send read only document via mail.
I use this code to protect the file
NSData *fileContent = [manager contentsAtPath:path];
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
[dict setObject:[NSNumber numberWithBool:YES] forKey:NSFileImmutable];
[dict setObject:[NSNumber numberWithShort:0444] forKey:NSFilePosixPermissions];
[manager createFileAtPath:alternativePath contents:fileContent attributes:dict];
I have checked the generated file and the permissions are all setted to "Read Only". When i send it via mail to someone, the file will be downloaded and then the owner can add annotation and other things..... How can i do to mantain the 444 file permission (read only) to the downloaded file??
Best regards
Francesco