Re: NSFileWrapper, type & creator -> questions
Re: NSFileWrapper, type & creator -> questions
- Subject: Re: NSFileWrapper, type & creator -> questions
- From: Nick Müller <email@hidden>
- Date: Thu, 10 Jan 2002 17:15:54 +0100
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