cocoa - OSX App - Associated file types and icons not updating (Launch Services) -


i have mac app open ".png" file types. able application make default app opens ".png" files , double clicking files launch app.

however, can't seem update icon on .png files - shows default icon thumbnail of image.

i have file called icon.icns in project, , following block in info.plist file:

<key>cfbundledocumenttypes</key> <array>     <dict>         <key>cfbundletypeextensions</key>         <array>             <string>png</string>         </array>         <key>cfbundletypeiconfile</key>         <string>icon</string>         <key>cfbundletypename</key>         <string>png</string>         <key>cfbundletyperole</key>         <string>viewer</string>     </dict> </array> 

what's weird if restart computer, icons update, after second or change system default.

thanks!


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -