Mailing Lists: Apple Mailing Lists

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

Re: Can't show file or folder as "busy"



Mike Kluev wrote on Thursday, March 3, 2005:

>On Tue,  1 Mar 2005 15:45:54, James Bucanek <email@hidden> wrote:
>
>> 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?"
>
>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.

You're right, this was an assumption on my part.  If you do this for a file that's on the desktop, the Finder will turn the icon gray.  You see this most often when using a (well written) browser to download a large file.  I had simply assumed that the interface was universal, and that all "bzy" files were displayed with a grey icon everywhere.  I guess not.  Maybe in Tiger.

Regardless, I stepped through to code and stopped the program at the point where the files/folders are being created and the Finder will refuse to trash any file that has a type of 'bzy', so that much works even if the icon doesn't change.

On the other hand, a folder with a create date of kMagicBusyCreationDate doesn't seem to make any difference.  I'll leave the code in there (because it doesn't affect my program) in the hopes that it will be better supported in the future.  Maybe I'll file a bug report.  (This is in OS 10.3)

>So looks like this is your responsibility to provide an icon for
>"busy" state.

I'll put that on my to-do list.  This would, at least, give me much more control over the icon while the file was being written.

>[kMagicBusyCreationDate = 0x4F3AFDB0 = 14/02/1946. What's magic about
>it? A good question for "stump the experts".]

Finally, something to bring with me to the next WWDC!

Cheers,

James

-- 
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

References: 
 >Re: Can't show file or folder as "busy" (From: Mike Kluev <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.