title: NSFileManager & NSFilePosixPermissions
body: <p>I want to use the octal permissions (used for chmod) for NSFilePosixPermissions.
  Here is what I did now:</p>
  
  <pre><code>NSFileManager *manager = [NSFileManager defaultManager];
  NSDictionary *attributes;
  
  [attributes setValue:[NSString stringWithFormat:@"%d", 0777] 
               forKey:@"NSFilePosixPermissions"]; // chmod permissions 777
  [manager setAttributes:attributes ofItemAtPath:@"/Users/lucky/Desktop/script" error:nil];
  </code></pre>
  
  <p>I get no error, but when I check the result with "ls -o" the permission are't -rwxrwxrwx.</p>
  
  <p>What's wrong?
  Thanks for help.</p>