Example of copyfile() progress via COPYFILE_STATE_COPIED
Since it looks like the Web doesn’t have an example of monitoring progress of a copyfile() operation via COPYFILE_STATE_COPIED, here it goes. Note that the progress callback is disabled in OS X v10.8 even though the man page mentions it. As explained by Doug, copyfile()’s status callback can be used to monitor progress of single files and recursive copies. Check his example with COPYFILE_STATE_STATUS_CB in an NSOperation subclass.