
404 9 Chapter 19: Making It Happen: Events, Responders, Delegates, and Notification
another one; attach the connection to the delegate outlet in the
Info window.
You may need to attach a delegate to an object programmati-
cally--again, toolbars require this. The toolbar object itself im-
plements only the most basic functionality. It requires a
delegate to tell it what the default items are, to identify the al-
lowable items, and to provide it with an NSToolbarItem for a
given identifier. In the Diary example shown in Chapter 20,
the document object (an override of NSDocument) is the del-
egate and implements these methods.
Sometimes, ...