title: Setting NSFileCreationDate has no effect
body: <p>I'm trying to set the creation and modification dates on a file. </p>
  
  <pre><code>NSFileManager *fileManager = [NSFileManager defaultManager];
  NSDate *now = [NSDate date];
  NSDictionary *timestampAttr = [NSDictionary dictionaryWithObjectsAndKeys:
                                        now, NSFileCreationDate, now, NSFileModificationDate, nil];
  BOOL ret = [fileManager setAttributes:timestampAttr ofItemAtPath:path error:&amp;err];
  </code></pre>
  
  <p>The modification date is successfully modified for the file. The creation date is unchanged. Why? </p>
  
  <p><code>ret</code> is true and <code>err</code> is nil. <code>-attributesOfItemAtPath</code> returns a dictionary that contains both keys in <code>timestampAttr</code> and the correct (modified) modification date and the incorrect (unmodified) creation date. </p>
  
  <p><strong>Edit:</strong> Using OS X version 10.6. Base SDK of Xcode project is 10.5. File is on my computer's only hard drive (no RAID), in a folder inside my home folder. <s>The file is inside of an app bundle if that makes a difference.</s></p>
  
  <p><strong>Edit:</strong> This simple example works: </p>
  
  <pre><code>#import &lt;Cocoa/Cocoa.h&gt;
  
  int main(void)
  {
      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
      NSFileManager *m = [NSFileManager defaultManager];
      NSString *path = ...;
      [m setAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[NSDate date],NSFileCreationDate,nil] ofItemAtPath:path error:nil];
      [pool drain];
      return 0;
  }
  </code></pre>
  
  <p>I pasted the code above into the app I originally asked about, setting attributes for the same file as the simple example (on my desktop). When the code is inside the app, it does not work. </p>
  
  <p><strong>Edit:</strong> OK, this is crazy. The simple example above was working (my coworker and I both saw it working on my computer) but now it's not working. </p>