• 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: favicon of address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: favicon of address


  • Subject: Re: favicon of address
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 21 Sep 2009 09:34:17 -0700



The best engineered approach would probably be to load the page up into a WebView, BUT use the WebResourceLoadDelegate to stop it wasting time downloading any resource that isn't the favicon.

WebView has a lot of overhead! It would be much more efficient to just use NSXMLDocument to download and parse the HTML. Using the XPath accessor methods in NSXML you can very easily search for that particular link and extract its URL.


It shouldn't take more than three or four lines of code if you don't mind doing it synchronously; if you want async, then use an NSURLRequest to download the HTML and pass the resulting data to NSXMLDocument.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >favicon of address (From: Mitchell Livingston <email@hidden>)
 >Re: favicon of address (From: Mike Abdullah <email@hidden>)
 >Re: favicon of address (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Oh notification, where are you?
  • Next by Date: Re: Menu shortcuts without modifiers?
  • Previous by thread: Re: favicon of address
  • Next by thread: bitmap caching issue (was: settings to build for 10.5 on 10.6?)
  • Index(es):
    • Date
    • Thread