I have a file which I created using NSFileManager but could not find a way to make it readonly. I have searched all over the internet and in Apple's NSFileManager Class Reference but could not find anything. Here is the code of where the file was created.
if ([fm createFileAtPath:fileName contents:inputData attributes:nil] == NO) {
NSLog(@"Error!");
return 1;
}