griff/metaz — Issue #6: FSPathCopyObjectAsync callbacks with ARC
Author: epologee
Created: 2012-01-26 22:34:33+00:00
State: open

Hi, I can't think of another way to send you a message, so please forgive me for using the issue board although this is **not an issue of MetaZ**.

I'm looking for example implementations of FSPathCopyObjectAsync and your project is the only clear one on github. I'm talking about the [`NSFileManager+MZAsync`][1] category. I have been trying to port the category and the depending objects to ARC and although the actual copying works, the callback method `MZCopyFSPathFileOperationStatusProc` is never called. I'm assuming this is because some object is incorrectly released by ARC, but there could be something else going on. I am holding on the return object of the `copyItemAsyncAtPath:toPath:destName:options:statusChangeInterval:error:` method, so that's not it.

Would you know how to get this to work under a project with ARC enabled? You can see my attempt at https://gist.github.com/9421769313130bf060a9.
Sorry to bother you with this, but I'd be very grateful if you could help.
Cheers,
EP.

[1]: https://github.com/griff/metaz/blob/develop/Framework/src/NSFileManager%2BMZAsync.m