Mac OS X Reference Library Apple Developer
Search

ReadMe.txt

NewsReader
 
 
Objective
 
The NewsReader example shows how to use the PubSub API to create a simple RSS reader application. It also demonstrates the use of Cocoa bindings to populate some of the columns in its table view, the use of value transformers, the implementation of an NSOutlineView datasource and an NSTableView datasource, and the implementation of a WebView delegate.
 
 
Files of Interest
 
MainMenu.nib - This interface file contains object and array controllers connected to the back end, that in turn provide information for UI elements including text fields and tables. Investigate how the bindings tab in the Inspector changes for the different controllers and UI elements.
 
EntryTemplate_NoLink.html and EntryTemplate.html - These files are used to build the HTML that is displayed in a WebView when a single entry is selected in a table view. See also: EntryController class files.
 
EntryController and EntryListController class files - These files assist in obtaining entry-specific information using the PubSub API, and providing it for display in the UI. EntryController is a WebView delegate. EntryListController is an NSTableView datasource.
 
FeedListController class files - These files assist in obtaining feed-specific information using the PubSub API, and providing it for display in the UI. FeedListController is an NSOutlineView datasource.
 
NewsReaderApp class files - These files carry out general UI tasks in the NewsReader application, including feed and entry selection, and menu commands such as Subscribe and Unsubscribe. NewsReaderApp is an NSApplication delegate, and a PSClient delegate.



Last updated: 2007-06-01

Did this document help you? Yes It's good, but... Not helpful...