{"id":1757,"date":"2006-03-10T14:06:34","date_gmt":"2006-03-10T17:06:34","guid":{"rendered":"http:\/\/brockerhoff.net\/bb\/viewtopic.php?p=1721"},"modified":"2010-05-08T20:06:25","modified_gmt":"2010-05-08T23:06:25","slug":"re-kill-custom-icons-3","status":"publish","type":"post","link":"https:\/\/brockerhoff.net\/blog\/2006\/03\/10\/re-kill-custom-icons-3\/","title":{"rendered":"Re: Kill custom icons?"},"content":{"rendered":"<p><strong>Nando wrote:<\/strong><\/p>\n<blockquote><p>The problem really lies within the file&#8217;s data fork, once you change that you can easily have the application open a file that is not attached to it, which might not be a succesful task.<\/p><\/blockquote>\n<p>I think you&#8217;re misinformed about what&#8217;s in the data fork; the contents of that have very little to do with file-application binding. It&#8217;s just unstructured data as far as the system is concerned.<\/p>\n<p><strong>Nando wrote:<\/strong><\/p>\n<blockquote><p>One thing that could work is have the software check if the icon it&#8217;s file holds is not the icon for another application&#8217;s file. The system has a list of the icons for each file type, so a background check on that wouldn&#8217;t take long at all, probably not over 0.3 seconds&#8230;<\/p><\/blockquote>\n<p>Unfortunately, that&#8217;s impossible. The system would have to locate all the icons from the list (usually thousands), read them (they&#8217;re usually from 32K to 64K in size) and compare all pixels with that custom icon; even so, changing one single pixel would cause the comparison to fail. It would take several minutes and be completely unreliable&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nando wrote: The problem really lies within the file&#8217;s data fork, once you change that you can easily have the application open a file that is not attached to it, which might not be a succesful task. I think you&#8217;re misinformed about what&#8217;s in the data fork; the contents of that have very little to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[3,33],"tags":[23],"class_list":["post-1757","post","type-post","status-publish","format-standard","hentry","category-apple","category-graphics","tag-mac"],"featured_image_src":null,"author_info":{"display_name":"Rainer Brockerhoff","author_link":"https:\/\/brockerhoff.net\/blog\/author\/rbrockerhoff\/"},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q3Zc-sl","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts\/1757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/comments?post=1757"}],"version-history":[{"count":0,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts\/1757\/revisions"}],"wp:attachment":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/media?parent=1757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/categories?post=1757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/tags?post=1757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}