• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom Volume icon and Finder refresh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Volume icon and Finder refresh


  • Subject: Re: Custom Volume icon and Finder refresh
  • From: Marc LAFFITTE <email@hidden>
  • Date: Mon, 29 Nov 2004 13:11:09 +0100

Well, the solution was actually allmost contained in my question.
I just had to pass the mount path to noteFileSystemChanged for the Finder to reflect the change immediately...


On Monday, November 29, 2004, at 12:53 PM, Marc LAFFITTE wrote:

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
References: 
 >Custom Volume icon and Finder refresh (From: Marc LAFFITTE <email@hidden>)

  • Prev by Date: Controls in NSBrowser
  • Next by Date: Excelsior
  • Previous by thread: Custom Volume icon and Finder refresh
  • Next by thread: LSUIElement does not work as documented?
  • Index(es):
    • Date
    • Thread