• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSFileWrapper, type & creator -> questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Solved: NSFileWrapper, type & creator -> questions
      • From: Nick Müller <email@hidden>
References: 
 >NSFileWrapper, type & creator -> questions (From: Nick Müller <email@hidden>)

  • Prev by Date: Delegation question
  • Next by Date: Solved: NSFileWrapper, type & creator -> questions
  • Previous by thread: NSFileWrapper, type & creator -> questions
  • Next by thread: Solved: NSFileWrapper, type & creator -> questions
  • Index(es):
    • Date
    • Thread