On Sep 20, 2009, at 1:53 PM, Mitchell Livingston wrote:

Hey,

I want to get the favicon of a URL address, but don't actually need any of the page's content. Is there an efficient way to do this besides hammering the site for this info? This image isn't critical, so something that works "most of the time" should be fine.

This isnt really a Cocoa question, so you're asking the wrong list.

That said, a large majority of sites still store favicons at / favicon.ico, so you can just try to download that URL and hope for the best. Otherwise you have to get the page content and look for the link element that specifies the correct favicon url. See http://en.wikipedia.org/wiki/Favicon

Jason


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to