Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

Who Should Read This Document?
Organization of This Document
Platform and Language Support
Getting Interface Builder
Reporting Bugs
See Also
Opening Interface Builder
Creating an Interface Builder Document
Interface Builder Quick Start
Table1-1 Interface Builder document templates
The Document Window and Workflow Tools
The Document Window
Figure1-2 The document window
The Library Window
The Inspector Window
The Connections Panel
Figure1-5 The connections panel
Example: Building a Quartz Composer Viewer
Creating the Viewer
Figure1-7 Autosizing the Quartz Composer view
Adding the Pause/Play Button
Figure1-8 Autosizing the pause/play button
Creating the AppController Class
Listing1-2 AppController class implementation
@implementation AppController
Adding the AppController Class
Adding the Load Button
What’s Next?
Interface Builder Documents
Interface Builder Basic Concepts
Figure2-1 Interface Builder document window
Table2-1 Interface Builder document controls
Workflow Tools
Table2-3 Connections panel section descriptions
The Strings Window
Interface Builder Behaviors
Modifier Keys
Selection Behavior and Appearance
Figure2-6 Appearance of selected items
Selecting Hidden Objects in a Nib File
Multiple Document Shading
Figure2-7 Shading of active and inactive documents
About Nib and Xib Files
What Goes in a Nib File?
Nib File Design Guidelines
Choosing the Best File Format
Nib Files and Localization
Creating a Nib File
Saving Nib Files
Saving in the Xib File Format
Saving in the Nib File Format
Using Image and Sound Resources in a Nib File
Refactoring Your Nib Files
Converting iOS Nib Files
iOS Interface Objects
Views and Controls
Custom Views
Figure4-2 Bar button items in a toolbar
Controller Objects
Figure4-3 Controllers and custom objects in Cocoa Touch nib files
View Controllers
Using a View Controller as File’s Owner of a Nib File
Figure4-4 View controller editor window
Tab Bars
Figure4-5 Interface modes of the Clock application
Figure4-7 Tab bar controller editor window
Navigation Bars
Figure4-8 Components of a navigation bar interface
Figure4-10 Navigation controller editor window
Mac OS X Interface Objects
Controls and Cells
Custom Cells
Menus and Menu Items
Creating and Modifying Menus
Collection Views
Figure4-15 Controllers and custom objects
Core Data Objects
Formatter Objects
Placeholder Objects
File’s Owner
Table4-1 Typical classes used for File’s Owner
First Responder
Custom Placeholder Objects
Finding Objects in a Nib File
Tips for Organizing Your Nib Objects
Factor Your Interfaces Appropriately
Use the Embed Commands
Layout Tools
Table5-1 Tools to help with laying out user interfaces
Moving and Sizing Objects
Interface Layout
Moving Views
Figure5-1 The Size pane of the inspector
Resizing Views
Figure5-2 Examples of selection handles
Moving and Resizing Windows
Changing the Size of a Control
Setting a View’s Autosizing Behavior
Figure5-5 Configuring the autosizing rules of a view
Design-Time Resizing Modes for Windows
Aligning Objects
About Alignment Guides
Aligning Objects Relative to One Another
Displaying Bounding and Layout Rectangles
Figure5-7 Bounding and layout rectangles for a window
Getting Dynamic Layout Information
Figure5-9 Showing the distance between two views
Using Custom Guides
Changing the Window Orientation in iOS
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
Table5-2 Techniques for grouping controls
Editing Object Attributes
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
Table6-2 Inspector fields for modern formatters
Configuring Date Formats
Setting the Key Equivalent for a Button
Configuring the Tab Order for Views
Configuring User Assistance Attributes
Configuring Runtime Attributes for Custom Objects
Specifying Carbon Attributes
Assigning Command IDs to Objects
Assigning a Signature and Control ID
To assign 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
About Connections and Bindings
Connections and Bindings
Creating and Managing Outlet and Action Connections
Making Quick Connections By Dragging
Making Connections Using the Connections Panel
Figure7-1 Connecting from source to target
Figure7-2 Connecting from target to source
Figure7-3 Connecting an outlet to the target
Making Connections Using the Inspector
Breaking Connections
Establishing Connections to the First Responder
Connecting Menu Items to Your Code
Binding Directly to the Value
Figure7-7 Binding through another data object
Figure7-8 Binding through an object controller
Figure7-9 Binding to an array of objects
Configuring the Attributes of a Binding
Table7-1 Common binding attributes
Using Cocoa Controller Objects
Table7-2 Cocoa controller objects
Configuring an NSTreeController Object
Using the Shared User Defaults Controller
Copying and Pasting Connections
Setting the Class of an Object
Generic Objects
Xcode Integration
Figure8-2 Setting the class of an object
Custom Objects
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
Figure8-3 Defining outlets and actions in the Library window
Generating Source Files for New Classes
Injecting Class Information into a Nib File
Scripting Language Support
Setting the Nib File Version
Checking for Errors and Warnings
Simulating Your Interface
Locking Down Your Nib File
Table10-1 Locking options for nib-file objects
Localizing Your Nib File’s Content
Performing the Initial Localization of a Nib File
Performing Incremental Localization Updates
Figure10-1 Merging changes into a localized nib file
Customizing the Library Window
Filtering the Grid Display
Interface Builder Customization
Figure11-2 Filtering the contents of the Library window
Creating Custom Groups
Figure11-3 Custom groups in the Library window
Creating Smart Groups
Table11-1 Rule editor search criteria
Removing Groups and Smart Groups
Rearranging Objects in the Items Pane
Adding Custom Objects to the Library
Minimizing the Organization Pane
Figure11-5 Minimizing the organization pane
Interface Builder Preferences
Table11-2 Interface Builder preferences
Using Plug-ins to Integrate New Objects into the Library
64-Bit Plug-Ins
Gestures for Making Connections
Using the Connections Panel
Using Mouse Drag
Using the Connections Inspector
Interface Builder Gesture Guide
Inspector Gestures
Library Gestures
Workspace Gestures
Document Window Gestures
Document Window and Workspace Gestures
Document Revision History
0 of .
Results for:
No results containing your search query
P. 1
Apple Interface Builder UserGuide

Apple Interface Builder UserGuide

Ratings: (0)|Views: 2,118|Likes:
Published by atetlaw

More info:

Published by: atetlaw on Aug 18, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





You're Reading a Free Preview
Pages 4 to 67 are not shown in this preview.
You're Reading a Free Preview
Page 71 is not shown in this preview.
You're Reading a Free Preview
Pages 75 to 127 are not shown in this preview.
You're Reading a Free Preview
Pages 131 to 155 are not shown in this preview.
You're Reading a Free Preview
Pages 159 to 176 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->