Introduction | Your first interface | Building a model | Advanced features | Resources

2.3 Customising object properties

In this step, you will go on to change the look and behaviour of the objects you've put on the interface to make them do exactly what you want.

Every object has a set of properties that can be viewed and changed. You can display the property sheet for an object by right-clicking on the object and selecting Properties at the bottom of the pop-up menu.

Properties can be thought of as a set of characteristics of an object that describe the way in which it looks and behaves. For example, all objects have width and height properties that define the size at which that object will be displayed (these properties are not editable for all objects).

Some properties of an object can be edited directly in the properties window (note: you must remember to press Enter after changing a property, otherwise the amendment won't be registered), some offer a selection from a drop-down list, while others bring up secondary dialogs to set specific properties.


Have a look at the property sheets for the objects on your interface, try changing some properties and see what (if any) visible affect the changes have (remember to press Enter to register your changes). Don't worry if you can't work out what some of the properties do at the moment - they will become clear as you become more experienced with the Interface Builder - just familiarise yourself with how changing properties can affect an object on the interface.


To get your interface to look the same as the one in 2. Your first interface, you will need to set the following properties (but feel free to experiment as much as you like with your own interface).

  • Voltage spin button
    • horizontal = false
    • inc = 0.5
    • max = 240
    • min = 1.5
  • Resistance input slider
    • max = 100
    • min = 1
  • Current analogue meter
    • width = 180
    • height = 180
    • graduationTicks = 5
    • showTitle = false
    • zones -> remove all zones
  • Current output digital
    • width = 100
    • height = 35
    • numberFormatter -> notation = floating point, decimal places = 1
    • showTitle = false

When you've finished, your interface will look something like this:

In the next step, you see how to add actions to the interface, which will automatically set the resistance without using the input slider.