Documentation Archive Developer
Search

ADC Home > Reference Library > Technical Q&As > Carbon > File Management >

Notifying the Finder of changed or newly created files


Q: I just created a file from my application, but the icon is not showing up in ther Finder window. What is the problem?

A: The recommended approach is to send the Finder a kAESync event pointing to the file system object you want to update. The Finder in turn, will update LaunchServices, display the files icon, and send notifications to other applications watching for changes using FNSubscribe.

The MoreAppleEvents sample code demonstrates how to create and send kAESync events to the Finder. Take a look at the utility routines: MoreFEUpdateItemFSRef , MoreFEUpdateItemFSS , and MoreFEUpdateItemAlias .


[Apr 15, 2003]