05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Publication Subscription<br />

Syndication is old technology that’s recently taken the Web by storm. It works by letting people<br />

subscribe to web feeds—lightweight versions of their favorite web sites. These feeds can then be<br />

aggregated using specialized applications, like NewsGator’s NetNewsWire, shown in Figure 24-11.<br />

Apple and others have expanded on syndication and found novel uses for its technology. In<br />

addition to Safari’s subscription feature, iTunes’s podcasts and iPhoto’s album sharing are implemented<br />

using syndication.<br />

Figure 24-11. NetNewsWire aggregates web content using syndication.<br />

The bad news about syndication is that it encompasses several competing standards, such<br />

as RSS and ATOM. There are also different versions within each standard, such as RSS 0.9,<br />

RSS 1.0, and RSS 2.0. The good news is you don’t need to care, thanks to <strong>Leopard</strong>’s new Publication<br />

Subscription framework, known simply as PubSub.<br />

PubSub handles the details of monitoring, downloading, and updating feeds, and then notifying<br />

interested applications when something changes. Because it’s a central database for all<br />

syndication information, you can also ask PubSub for other people’s feeds. For example, if<br />

you’re interested in what feeds your user has bookmarked in Safari, PubSub can tell you.<br />

Feeds are typically implemented in XML, and Cocoa’s XML framework is quite good. Still,<br />

PubSub lets you treat the XML as an implementation detail, giving you a single, object-oriented<br />

interface to syndicated data regardless of the vagaries of format. Even if you don’t subscribe to a<br />

feed, you can still use PubSub to parse it.<br />

Spotlight<br />

CHAPTER 24 MAC <strong>OS</strong> X DEVELOPMENT: THE APPLICATION FRAMEWORKS 433<br />

If you’ve been using a <strong>Mac</strong> (or reading this book), you know about Spotlight: Apple’s integrated<br />

search utility that reunites users with their data across the vast cluttered landscape of their hard<br />

drives. To <strong>Mac</strong> developers, Spotlight presents a responsibility, as well as opportunity.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!