> If renaming is the answer, is there any sample code to do this safely, taking > care of all cases? (For example, replacement name already taken, or adding > an extension if the file doesn’t start with one, etc.)
An idea... move the destination file, if it exists, to the trash. See NSFileManager's trashItemAtURL:resultingItemURL:error: to do that in a safe manner. Trash the old file then save the new. Marc _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com