On Tue, 1 Mar 2005 15:45:54, James Bucanek <email@hidden> wrote:
> 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.
Should it be displayed specially? The comment in Finder.h doesn't
mention any special look for busy files:
#This prevents Finder 8.5 and later from trying to change the item's
#attributes before it is fully created.
Then:
#If you provide a series of 'BNDL' icons for your creator
#and some of these filetypes, you can achieve limited icon animation
#while the file creation progresses.
So looks like this is your responsibility to provide an icon for
"busy" state.
> (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.)
#Finder 8.5 and 8.6 check file creation dates; later Finders
#may check folder creation dates as well
OTOH, the comments in Finder.h might be old news (after all, they
are talking about Finder 8.5).
[kMagicBusyCreationDate = 0x4F3AFDB0 = 14/02/1946. What's magic about
it? A good question for "stump the experts".]
Mike
_______________________________________________
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