Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't show file or folder as "busy"



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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.