[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSFileWrapper bug
From: |
Ludovic Marcotte |
Subject: |
NSFileWrapper bug |
Date: |
Tue, 18 Sep 2001 11:12:29 -0400 (EDT) |
Hi,
In NSFileWrapper, the method:
- (BOOL) writeToFile: (NSString*)path
atomically: (BOOL)atomicFlag
updateFilenames: (BOOL)updateFilenamesFlag
contains a small bug.
At the end of the method we have:
if (success && updateFilenamesFlag)
[self setFilename: path];
and I think we should have:
if (success && updateFilenamesFlag)
[self setFilename: [path lastPathComponent]];
Ludovic
--
Live as if you were to die tomorrow.
Learn as if you were to live forever.
- Gandhi
- NSFileWrapper bug,
Ludovic Marcotte <=