[comp.sys.mac.programmer] Displaying APPL ICON after download?

davet@oakhill.UUCP (David Trissel) (03/06/89)

Problem: I have written a download program but cannot get MultiFinder to
 properly redisplay the application's new ICON after downloading.

 Obviously as a file is being downloaded it's BNDL resource is unavailable
 so I avoid setting any finder flags until after the file is complete and
 closed. (Multifinder has already seen it by close time and has it displayed
 as a standard application ICON.)

 I've tried various combinations of Inited and HasBundle flags but none
 seem to work. Evidently there is a way to do this properly because the MPW
 3.0 linker when linking a new application essentially has the same condition
 and MultiFinder redisplays the proper ICON at the end of a link. An attempt
 to examine Finder flags of a file while it's being linked show initially
 the type to be APPL and a null creator field. I've tried doing the same but 
 to no avail.

 Thanks in advance.

 -- Dave Trissel ut-sally!im4u!oakhill!davet