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
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 mails | Author | Date |
|---|---|---|
| Nick Müller | Jan 10, 16:07 | |
| Nick Müller | Jan 10, 17:15 | |
| Nick Müller | Jan 10, 17:37 |






Cocoa mail archive

