Re: Re: FSCopyObjectASync callback handler
Re: Re: FSCopyObjectASync callback handler
- Subject: Re: Re: FSCopyObjectASync callback handler
- From: "Michael Ash" <email@hidden>
- Date: Sun, 6 Aug 2006 16:46:21 -0400
On 8/6/06, Mike Abdullah <email@hidden> wrote:
Well here's my test class:
#import "Controller.h"
@implementation Controller
static void statusCallback(FSFileOperationRef fileOp, const FSRef
*currentItem, FSFileOperationStage stage, OSStatus error,
CFDictionaryRef statusDictionary, void *info)
{
printf("statusCallback called");
}
Unless you follow this printf with an fflush or a newline, it is
unlikely to actually appear on the screen unless you do a lot of other
IO afterwards. Are you *sure* this function never gets called? As
written, I would bet that it's getting called and you just aren't
seeing it because the printfs never get flushed to the screen.
To be absolutely sure, NSLog it, or fprintf to stderr and follow it up
with an fflush. Also put a breakpoint in the debugger so you can see
if it's actually reached that way.
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