Re: Bug with Localized Failure Reason and file moving

2015-03-31 Thread Daryle Walker
> On Mar 24, 2015, at 8:44 PM, Daryle Walker wrote: > > A segment from my command-line tool: > >>NSURL * const finalLocation = [NSURL >> fileURLWithPath:response.suggestedFilename isDirectory:NO]; >> >>[[NSFileManager defaultManager] moveItemAtURL:location >>

Re: Bug with Localized Failure Reason and file moving

2015-03-30 Thread Daryle Walker
> On Mar 30, 2015, at 3:00 AM, dangerwillrobinsondan...@gmail.com wrote: > >> On 2015/03/25, at 9:44, Daryle Walker wrote: >> >> A segment from my command-line tool: >> >>> NSURL * const finalLocation = [NSURL >>> fileURLWithPath:response.suggestedFilename isDirectory:NO]; >>>

Re: Bug with Localized Failure Reason and file moving

2015-03-30 Thread dangerwillrobinsondanger
> On 2015/03/25, at 9:44, Daryle Walker wrote: > > A segment from my command-line tool: > >>NSURL * const finalLocation = [NSURL >> fileURLWithPath:response.suggestedFilename isDirectory:NO]; >> >>[[NSFileManager defaultManager] moveItemAtURL:location >> toU

Re: Bug with Localized Failure Reason and file moving

2015-03-29 Thread Daryle Walker
On Mar 24, 2015, at 8:56 PM, Quincey Morris wrote: > > On Mar 24, 2015, at 17:44 , Daryle Walker > wrote: >> >>[[NSFileManager defaultManager] moveItemAtURL:location >> toURL:finalLocation error:&error]; >>if (error) { > > Your code is

Re: Bug with Localized Failure Reason and file moving

2015-03-24 Thread Quincey Morris
On Mar 24, 2015, at 17:44 , Daryle Walker 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 t

Bug with Localized Failure Reason and file moving

2015-03-24 Thread Daryle Walker
A segment from my command-line tool: > NSURL * const finalLocation = [NSURL > fileURLWithPath:response.suggestedFilename isDirectory:NO]; > > [[NSFileManager defaultManager] moveItemAtURL:location > toURL:finalLocation error:&error]; > if (error)