Skip navigation.
 
mlRe: NSFileWrapper, type & creator -> questions
FROM : Nick Müller
DATE : Thu Jan 10 17:15:54 2002

On 10.01.2002 at 16:07 Uhr, Nick M|ller wrote:

> [attributes setObject: [NSNumber numberWithUnsignedInt: 'FooB']
>        forKey:@"NSHFSCreatorCode"];
> [attributes setObject: @"NSFileTypeRegular" forKey:@"NSFileType"];
> [attributes setObject: [NSNumber numberWithUnsignedInt:0777]
>        forKey:@"NSFilePosixPermission"];
> [file setFileAttributes: attributes];
> [file writeToFile:@"file.ext" atomicaly:NO updateFilenames:YES];


There is a error I made during retyping:
NSHFSCreatorCode _is_ NSFileHFSCreatorCode

All the keys are defined constants, not strings. E.g.
forKey:@"NSFilePosixPermission" -> forKey:NSFilePosixPermission

But this also doesn't help.


Nick


Related mailsAuthorDate
mlNSFileWrapper, type & creator -> questions Nick Müller Jan 10, 16:07
mlRe: NSFileWrapper, type & creator -> questions Nick Müller Jan 10, 17:15
mlSolved: NSFileWrapper, type & creator -> questions Nick Müller Jan 10, 17:37