Interface Builder User Guide
PDF
Introduction
Interface Builder Basic Concepts
Interface Builder Documents
Workflow Tools
The Library Window
The Inspector Window
The Connections Panel
The Strings Window
Interface Builder Behaviors
Command Modifier Keys
Selection Behavior and Appearance
Selecting Hidden Objects in a Nib File
Multiple Document Shading
Nib File Management
About Nib and Xib Files
What Goes in a Nib File?
Nib File Design Guidelines
Keep Your Nib Files Small
Choose Appropriate Controller Objects
Place Appropriate Objects at the Top Level of a Nib File
Choosing the Best File Format
Nib Files and Localization
Creating a Nib File
Saving Nib Files
Saving in the Development-Time Format
Saving in the Deployment Formats
Using Image and Sound Resources in a Nib File
Refactoring Your Nib Files
Nib Objects
iPhone OS Interface Objects
Windows
Adding a Window to a Nib File
Removing a Window from a Nib FIle
Views and Controls
Adding Views to a Nib File
Removing Views from a Nib File
Custom Views
Toolbars
Setting the Appearance of Bar Button Items
Positioning Buttons on the Toolbar
Configuring the Action of a Bar Button Item
Controller Objects
View Controllers
Using a View Controller as File’s Owner of a Nib File
Adding a View Controller to Your Nib File
Tab Bars
Adding and Removing Tabs
Configuring the Tab Bar Items
Configuring the Views for a Tab
Navigation Bars
Configuring the Navigation Bar Items
Configuring the Views for the Root Navigation Level
Configuring the Views for Additional Navigation Levels
Mac OS X Interface Objects
Windows and Panels
Adding Windows to a Nib File
Removing Windows from a Nib File
Views
Adding Views to a Nib File
Removing Views from a Nib File
Custom Views
Controls and Cells
Toolbars
Adding a Toolbar to a Window
Customizing the Contents of a Toolbar
Removing Items from a Toolbar
Responding to Toolbar Events
Removing a Toolbar from Your Window
Menus and Menu Items
Creating and Modifying Menu Bars
Creating Custom Menu Resources
Creating and Modifying Menus
Collection Views
Controller Objects
Core Data Objects
Formatter Objects
Proxy Objects
File’s Owner
First Responder
Application
Custom Proxy Objects
Finding Objects in a Nib File
Tips for Organizing Your Nib Objects
Factor Your Interfaces Appropriately
Use the Embed Commands
Interface Layout
Layout Tools
Moving and Sizing Objects
Moving Views
Resizing Views
Moving and Resizing Windows
Changing the Size of a Control
Setting a View’s Autosizing Behavior
Design-Time Resizing Modes for Windows
Aligning Objects
About Alignment Guides
Aligning Objects Relative to One Another
Displaying Bounding and Layout Rectangles
Getting Dynamic Layout Information
Using Custom Guides
Changing the Window Orientation in iPhone OS
Managing Parent-Child View Relationships
Embedding Views in a Parent Container
Changing a View’s Parent to Another View
Using ibtool to Gather Layout Metrics
Tips for Creating Effective Layouts
Follow the Automatic Guides
Use Proper Alignment for Labels and Controls in Mac OS X
Group Related Controls in Mac OS X
Object Attributes
Editing Object Attributes
Attaching Graphical Effects in Mac OS X
The Effects Inspector
Enabling Graphical Effects for a View
Configuring Filters
Configuring View Transitions
Applying Formatters
Attaching a Formatter to an Object
Configuring Number Formats
Configuring Date Formats
Setting the Key Equivalent for a Button
Configuring the Tab Order for Views
Configuring User Assistance Attributes
Specifying Carbon Attributes
Assigning Command IDs to Objects
Assigning a Signature and Control ID
Adding Auxiliary Properties
Adding Custom HIView Parameters
Attribute Guidelines
Use Consistent Control Sizes in Mac OS X
Assign Names to Your Objects
Connections and Bindings
About Connections and Bindings
Creating and Managing Outlet and Action Connections
Making Quick Connections By Dragging
Making Connections Using the Connections Panel
Example: Creating Action Connections
Example: Connecting Outlets
Making Connections Using the Inspector
Breaking Connections
Establishing Connections to the First Responder
Connecting Menu Items to Your Code
Configuring Cocoa Bindings in Mac OS X
Creating a Binding
Binding Directly to the Value
Binding Through an Intermediate Object
Binding to a Collection of Objects
Configuring the Attributes of a Binding
Using Cocoa Controller Objects
Configuring an NSTreeController Object
Using the Shared User Defaults Controller
Xcode Integration
Setting the Class of an Object
Defining Outlets and Actions in Xcode
Defining Outlets
Defining Action Methods
Synchronizing With Your Xcode Project
Creating Classes in Interface Builder
Defining New Classes in Interface Builder
Defining Outlets and Actions in Interface Builder
Generating Source Files for New Classes
Injecting Class Information into a Nib File
Scripting Language Support
Testing and Validation
Setting the Nib File Version
Checking for Errors and Warnings
Simulating Your Interface
Localization
Locking Down Your Nib File
Localizing Your Nib File’s Content
Performing the Initial Localization of a Nib File
Performing Incremental Localization Updates
Interface Builder Customization
Customizing the Library Window
Filtering the Grid Display
Creating Custom Groups
Creating Smart Groups
Removing Groups and Smart Groups
Rearranging Objects in the Items Pane
Adding Custom Objects to the Library
Minimizing the Organization Pane
Interface Builder Preferences
Using Plug-ins to Integrate New Objects into the Library
Glossary
Revision History
Related Documents
Resource Programming Guide
Interface Builder Plug-In Programming Guide