Changes

Jump to: navigation, search
Designing the User Interface
[[Image:xcode_4_file_example_ui.jpg|The File I/O example UI in Xcode 4]]
The next step is to establish the connections between the user interface components and the action and outlet created in the view controller code. Open the Connections Inspector panel (''View -> Utilities -> Connections Inspector'') and select the button object in the view window so that the available events for that object are listed. Click in the small circle to the right of the Touch Up Inside event and drag the blue line to the ''File’s Owner'' object. Release the mouse button and select the saveText action method from the resulting menu to create the connection.
To connect the text field to the textBox outlet declared in the view controller interface file, press and hold the control key, click with the mouse over the ''File’s Owner'' and drag the blue line to the text field object in the view window. Release and select the textBox entry from the resulting menu.
== Checking the Data File on Application Startup ==

Navigation menu