• 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: Force Finder to redisplay changed custom icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force Finder to redisplay changed custom icon


  • Subject: Re: Force Finder to redisplay changed custom icon
  • From: Ando Sonenblick <email@hidden>
  • Date: Wed, 25 Sep 2002 15:11:33 -0700

Coincidentally I just ran across:


/******************************************************************
Send an Apple event to the Finder to add a custom icon to the item
specified by the fssPtr.

pFSSpecPtr ==> The item to add the custom icon to.
pIconSuiteHdl ==> A handle to the icon suite to install.
pIconSelector ==> An IconSelectorValue specifying which icon types
to add (defined in Icons.h).
pIdleProcUPP ==> A UPP for an idle function, or nil.

See note about idle functions above.
*/
extern pascal OSErr MoreFEAddCustomIconToItem(const FSSpecPtr pFSSpecPtr,
const Handle pIconSuiteHdl,
const IconSelectorValue pIconSelector,
const AEIdleUPP pIdleProcUPP);


Didn't catch the beginning of the thread so apologies if this is a repeat.

Info found at:

http://developer.apple.com/samplecode/Sample_Code/Interapplication_Comm/More
AppleEvents/MoreFinderEvents.h.htm

Ando


> Try using NSWorkspace's noteFileSystemChanged method. I have found that
> this usually causes updates to attributes to be reflected immediately,
> but I've never tried it with icons specifically.
>
> -c
>
> On Wednesday, September 25, 2002, at 09:57 AM, Robert Fischer wrote:
>
>> Hi there,
>>
>> finally I found a way to set/remove custom icons programatically -
>> with the kind help of IconFamily source code
>> (http://homepage.mac.com/troy_stephens/software/objects/IconFamily).
>>
>> One problem still resists: if I set my custom icon once the Finder
>> will display it correctly. If I want to change the icon again, the
>> Finder will *not* reflect this until *reboot*! Logout does not help
>> nor removing the custom icon before.
>>
>> Where is the magic Carbon function KickFinderIconCacheImmediately()?
>>
>>
>> Thx in advance,
>>
>> Robert
>>
>> --
>> --- - .-. -- --
>> --- / \ ---- tin-b Software
>> .-. / \ --- .-. __o .-. (i)
>> / \ / \ / \ _`\<,_ / \ Robert Fischer
>> / \ / \ / \ (*)/ (*) / `---------------
>> / `---' `-' `-----------'
>> _______________________________________________
>> cocoa-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Force Finder to redisplay changed custom icon (From: Clark Mueller <email@hidden>)

  • Prev by Date: NSDictionary key/object correspondence
  • Next by Date: Database Reporting Software
  • Previous by thread: Re: Force Finder to redisplay changed custom icon
  • Next by thread: pointer to window from NSDocController
  • Index(es):
    • Date
    • Thread