• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FSCopyObjectASync callback handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: FSCopyObjectASync callback handler
      • From: "Jordan Krushen" <email@hidden>
  • Prev by Date: Re: Checking if NSButton is key view
  • Next by Date: Re: FSCopyObjectASync callback handler
  • Previous by thread: Re: Checking if NSButton is key view
  • Next by thread: Re: FSCopyObjectASync callback handler
  • Index(es):
    • Date
    • Thread