• 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: Displaying RSS feeds with WebKit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying RSS feeds with WebKit


  • Subject: Re: Displaying RSS feeds with WebKit
  • From: Nicko van Someren <email@hidden>
  • Date: Thu, 9 Mar 2006 16:31:46 +0000

On 9 Mar 2006, at 15:09, Huibert Aalbers wrote:
I have developed a simple Address Book plug-in that allows users to
display URLs within an drawer attached to the main application window.

Everything works fine except when trying to display RSS feeds. I can
get the RSS XML file by replacing feed:// by http:// but  it will
display as raw text, unlike within Safari.

So, my question is, do I have to parse the XML file myself? If the
answer is yes, does anyone know which versions of RSS Safari supports
so that I include support for at least these versions?

Displaying the RSS XML fetched from an http:// source looks crummy because it lacks any style information. You should be able to get a fairly acceptable rendering of an RSS document simply by applying an appropriate CSS definition. One way to do this in your application would be to set up a WebPreferences object, set the "user style" to be enabled and point it to a suitable CSS file, and then pass this object to the -setPreferences: method of the WebView. There are probably other ways to do this as well so you might want to look around at the documentation.


Cheers,
	Nicko


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Displaying RSS feeds with WebKit (From: "Huibert Aalbers" <email@hidden>)

  • Prev by Date: Re: Select an Item in NSOutlineView
  • Next by Date: Re: playing swf file
  • Previous by thread: Displaying RSS feeds with WebKit
  • Next by thread: Dumb Button binding Question
  • Index(es):
    • Date
    • Thread