Chapter 12: The Tools of Mac OS X: Interface Builder
thereafter, you can do anything that you want. Some code
from Diary is shown here. (The code in italics is the sort of
code that you add--everything else should be included as is
in your application.)
The underlined code calls a method that stores document data into the text
and image fields in the view. It then creates a toolbar for the window. Tool-
bars must be created dynamically--you do not create them in Interface
Builder. There is more on them in "Implementing Toolbars" starting on
page 440; this is part of that recipe.
Java:
public void windowControllerDidLoadNib ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.