On Mar 24, 2015, at 8:56 PM, Quincey Morris 
<quinceymor...@rivergatesoftware.com> wrote:
> 
> On Mar 24, 2015, at 17:44 , Daryle Walker <dary...@mac.com 
> <mailto:dary...@mac.com>> wrote:
>> 
>>                [[NSFileManager defaultManager] moveItemAtURL:location 
>> toURL:finalLocation error:&error];
>>                if (error) {
> 
> Your code is wrong. You must test the return value of ‘moveItemAtURL:’ for 
> success or failure. Only if the result is NO (failure) is the error valid.
> 
> In this case, the move is likely succeeding, and the error parameter doesn’t 
> contain a meaningful error.

Making this change doesn’t change the error message. (As I expected, since 
getting the test wrong doesn’t change the fact that the file from the previous 
run is blocking putting another there.) I guess I need to file a bug on how the 
error message is generated.

— 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com 

_______________________________________________

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

Reply via email to