FSCopyObjectASync callback handler
FSCopyObjectASync callback handler
- Subject: FSCopyObjectASync callback handler
- From: Mike Abdullah <email@hidden>
- Date: Sun, 6 Aug 2006 00:36:15 +0100
Does anyone here know how to use the callback method for
FSCopyObjectASync in Cocoa? I thought it would be as easy as
creating a function in my controller like so:
static void statusCallback(FSFileOperationRef fileOp, const FSRef
*currentItem, FSFileOperationStage stage, OSStatus error,
CFDictionaryRef statusDictionary, void *info)
I start the operation like so:
err = FSCopyObjectAsync(fileOp,
&sourceFileRef,
&destinationDirectoryRef,
(CFStringRef)@"Desktop 2",
options,
statusCallback,
1.0,
NULL);
But clearly I'm doing something wrong. The files copy no problem,
but my callback never gets, um, called. I'm assuming that this is
due to the whole "objects" thing in Cocoa, or is there more to it?
Mike.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden