Custom Volume icon and Finder refresh
Custom Volume icon and Finder refresh
- Subject: Custom Volume icon and Finder refresh
- From: Marc LAFFITTE <email@hidden>
- Date: Mon, 29 Nov 2004 12:53:50 +0100
Hello,
My app has to change a volume's icon. It either adds a new one, or
changes the existing one, by creating or modifying the .VolumeIcon.icns
file.
When I create an icon, I set the kHasCustomIcon Finder flag of the root
folder via FSSetCatalogInfo.
When I create or modify an icon I do also call [[NSWorkspace
sharedWorkspace] noteFileSystemChanged];
However, the change is not reflected by the Finder.
After icon creation, the next time I click the volumes icon in the
Finder, the new one appears.
After an icon has been modified, I have either to relaunch the Finder,
or unmount/mount the volume for the Finder to refresh its Display.
So, the quesion is: How to inform the Finder that a volume's icon has
changed, and that it should redisplay it ?
Thank you in advance for any typ,
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden