I'm trying to use FSCopyObjectAsync() to copy a file and get progress callbacks
to update my UI. The last parameter (clientContext) gets passed on to the
callback. Under ARC, I can not pass self because the parameter has a void*
type. Using (__bridge void*)self silences the compiler warning but
On Sep 20, 2011, at 5:07 PM, Indragie Karunaratne wrote:
I'm trying to use FSCopyObjectAsync() to copy a file and get progress
callbacks to update my UI. The last parameter (clientContext) gets passed on
to the callback. Under ARC, I can not pass self because the parameter has a
void*
This one was a case of not reading the docs properly :-) The clientContext
parameter was supposed to be an FSFileOperationClientContext struct with the
'info' member set to the data/object. The EXC_BAD_ACCESS was caused by me
trying to pass in 'self' instead of the struct.
On 2011-09-20, at