James Bucanek wrote on Tuesday, March 1, 2005:
>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 icon. I can verify with GetFileInfo that they
>have the correct type and creation date.
>
>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.
Well, it sort of works -- sometimes. I remembered that when I tried it before, I was writing a test file to the desktop. That seems to work. A file with a type of kFirstMagicBusyFileType shows as a greyed out icon when the file is created on the desktop. However, if I create the file in any other Finder window it shows up as a regular file. Is this normal?
Nothing that I've tried so far seems to work for folder, even on the desktop.
--
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