
280 9 Chapter 12: The Tools of Mac OS X: Interface Builder
You simply place the appropriate case element into your han-
dler, and you carry out the actions for the button you created
in Interface Builder. (You can follow the Interface Builder and
Project Builder Carbon examples for step-by-step guidance
through this process if you want.)
Programming
for Carbon Nibs
If you create a nib-based Carbon application from the Project
Builder template, the basic code will be created for you. First,
the nib (called main, by default), is created:
err = CreateNibReference (CFSTR ( "main" ) ,
&nibRef ) ;
require_noerr( err, CantGetNibRef