
Implementing Toolbars 9 445
[ itemIdentifiers addObject-
NewToo ibar I tem ] ;
[ itemIdentifiers addObject.
DeleteToolbarItem] ;
[itemIdentifiers addObject-
NextToolbarItem] ;
[itemIdentifiers addObject.
PreviousToolbarItem] ;
[ itemIdentifiers addObject-
DrawerToolbarI tem] ;
return itemIdentifiers;
Create the
Toolbar
When the window is created and about to open, you need to
create the toolbar. Here is the code to do that; all you do is
change the names of the toolbar elements.
Java:
public void windowControllerDidLoadNib (
NSWindowController aController) {
super, windowControllerDidLoaclNib (aController) ;
this. ...