7.4. Loading ".nib" Files for Customized Interfaces

NoteMac OS X only
 

This feature is available under Mac OS X only.

breve offers basic support for loading customized ".nib" files to give more customized interfaces to simulations. Users can design a customized window of controls (like buttons, sliders, checkboxes, etc.) and load it when the simulation is run. This feature is only available on the Mac OS X version of breve.

In order to build customized interfaces, the Mac OS X development tools including "Interface Builder", must be installed. A basic understanding of Interface Builder is also very helpful.

To implement a customized interface for your simulation, follow the following steps:

When the user interface element with the corresponding tag is activated, these methods will be called with the string value of the interface element. In the case of most types of controls, like buttons or sliders, you'll generally want to use the string value as a number to set some parameter.

7.4.1. Creating ".nib" Files Without Using the Included Template

It is best to use the included template for creating your own custom nib files because the process for creating them from scratch can be a bit confusing. Nevertheless the process is described below for those who are curious: