Graphics Programs Reference
In-Depth Information
This protocol's one method will be named
listViewControl-
ler:handleObject:
. The
ListViewController
will send this message to the
WebViewController
if a row in the table is tapped and to the
ChannelViewCon-
troller
if the
Info
button is tapped.
Notice that the second label and argument type of this method are very general so that it
can be used with a range of classes. When the
ListViewController
sends this mes-
sage to the
WebViewController
, it will pass an
RSSItem
object. When the
ListViewController
sends this message to the
ChannelViewController
, it
will pass an
RSSChannel
object.
In
ListViewController.h
, create the
ListViewControllerDelegate
pro-
tocol at the end of the file.
- (void)fetchEntries;
@end
// A new protocol named ListViewControllerDelegate