I'm writing a file retreival utility. For the best user experience, I'd like for the files and folder being retrieved to display as "Busy" in the Finder until they have been completely written.
Using FSCopyObject.c as a template, I create an FSCatalogInfo block and set the FInfo's fdType to kFirstMagicBusyFileType and the createDate to kMagicBusyCreationDate (using ConvertLocalTimeToUDTC).
But if I put breakpoint in the code immediately following the FSCreateFileUnicode()/FSCreateDirectoryUnicode() call, the file (or folder) shows up Finder as a regular file. (I'm passing kFSCatInfoFinderInfo|kFSCatInfoCreateDate|kFSCatInfoPermission for the whichInfo field on the FSCreateXXXUnicode() call.)
Does anyone have a clue as to what I'm doing wrong? Do you have to do something else to the file/folder to get the Finder to show it as "busy?" I could have sworn I had this working at one time.
(Note: I suspect that I'm only supposed to set the magic fdType for files and the magic createDate for folders, but that didn't work either.)
--
James Bucanek <mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden