through terminal you can make it with a command – “SetFile -a B filename”
programmatically i think i should set one of the attributes through
[[NSFileManager defaultManager] createDirectoryAtPath:dirPath withIntermediateDirectories:NO attributes:attributes error:nil];
but i can’t find which one.
thanks
It is still useful to be able to set the bundle bit programmatically, for instance iPhoto does this to make the iPhoto Library folder appear as a single file.
You can set the bundle bit programmatically using the Carbon File Manager API. You’ll need to make sure your app links against the Carbon framework and import the
<Carbon/Carbon.h>header. These calls are 64-bit safe.