Copyright ã1996 by NeXT Software, Inc.  All Rights Reserved.

;UsingTags.rtfd;;¬  Next Section	;SettingUpTableViews.rtfd;;¬  Previous Section

Automaticallyresizingobjects;¬Automatically resizing objects 

1	Select an object.

2	Choose the Size display of the Inspector panel.

3	In the Autosizing view of the display, click lines to make them springs or click springs to make them lines.

When you resize a window, the objects in the window must often adjust their size or the distances between themselves and other objects. The Size display of the Inspector panel lets you tell a selected object how to resize itself. The lines inside and outside the box affect different aspects of resizing behavior.

¬

¬
¬

If you do not make a view resize itself when its superview or window resizes, some ugly behavior could result. For instance, if the user makes a window small, objects that don't resize themselves could become truncated by the resized window's borders. One recourse to this unwanted outcome is to specify a minimum size for the window. 

¬

You might need to make several iterations in Interface BuilderÐsetting resizing characteristics in objects and shrinking the window in test modeÐto determine what the ideal minimum size should be.

When There Are Conflicts 

You can create an impossible resizing relationship, such as specifying as fixed the object's dimensions and its distance from the window's edges. In cases of conflict, an object's fixed dimension takes precedence over its fixed distance from a border. If all dimensions are made resizable, adjustments to the window or superview's changed dimensions are made equally to the object and its distance from a border.

For examples of the effects of these ªautosizingº characteristics on views within a resized window, see ªSome Effects of Automatic Resizing.º  ;SettingAttributesConcepts.rtfd;SomeEffectsofAutomaticResizing;¬

Interface Builder includes a test mode that simulates the actual operation of the interface. In test mode, you can test the resizing behavior of your windows and views, see how connected objects communicate, play sounds associated with buttons, and do similar operations. See ªTesting the Interfaceº in Chapter€4, ªMaking and Managing Connections,º for more information.  ;../04_Connections/TestingTheInterface.rtfd;;¬