for weeks i've been browsing the internet trying to learn how i can write a file that is hidden without having to prefix the file with "."... i know it's possible to simply name the file prefixed with a ".", but i'd like to know how to use what seems to be called "hidden bit"...
what is it that i can add to my code so that the file is hidden by default in Finder?
Code:
NSString *writeTextFile = CONSTnameAndLocationOnComputer;
writeTextFile = [writeTextFile stringByExpandingTildeInPath];
if ([fileManager fileExistsAtPath: writeTextFile] == NO)
{
NSString *theText = @"This is the file's text!";
[theText writeToFile:writeTextFile atomically:YES encoding:NSUnicodeStringEncoding error:NULL];
}
what is it that i can add to my code so that the file is hidden by default in Finder?