Re: FileManager Problem Post OS X 10.6 Installation

2009-09-22 Thread dct
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com

Re: FileManager Problem Post OS X 10.6 Installation

2009-09-21 Thread Greg Guerin
Don Thompson wrote: With the new OS X and Xcode I changed the code to: if( [mgr fileExistsAtPath:path1] ) [mgr removeItemAtPath:path1 error:NULL]; [mgr moveItemAtPath:path0 toPath:path1 error:NULL]; which fails in that: a. FileManager is aware of a file at the new location, i.e., (BOOL)fileOK

Re: FileManager Problem Post OS X 10.6 Installation

2009-09-21 Thread Jens Alfke
On Sep 21, 2009, at 3:26 PM, dct wrote: Prior to installing OS X 10.6 and Xcode 3.2 (64-bit), a bit of FileManager code for replacing one file with another, to wit: if( [mgr fileExistsAtPath:path1] ) [mgr removeFileAtPath:path1 handler:nil]; [mgr movePath:path0 toPath:path1 handler:nil]

FileManager Problem Post OS X 10.6 Installation

2009-09-21 Thread dct
Prior to installing OS X 10.6 and Xcode 3.2 (64-bit), a bit of FileManager code for replacing one file with another, to wit: if( [mgr fileExistsAtPath:path1] ) [mgr removeFileAtPath:path1 handler:nil]; [mgr movePath:path0 toPath:path1 handler:nil]; run without any problem. With the new