…Now we'll look at adding basic interaction to an application.…Let's click on MainMenu.xib, and…we're going to create a very simple user interface.…Remember that if you want to see your user interface, you need to…click on the Window option, which is on the left side of the center of the screen.…And its says Basic Interaction,…that's because that's what I've named this project.…So I click on that, and it shows me my window.…And so what we want to do is create a text field,…and enter some text in the text field.…

Click a button, and get some feedback by seeing some text in a label.…At the bottom right of the screen, in the Inspector area, and remember you can…show this with the blue icon showing on the Utilities bar, Find a Text Field.…So you can scroll down and find it,…and just drag it out, or you can just search for Text Field.…For example, in this Search Field at the bottom, I can type text.…And this narrows my options down so…I can more quickly find a Text Field, and there it is.…

I'll also use a label, and then I'm going to use a button.…

Resume Transcript Auto-Scroll

Author

Updated

5/3/2016

Released

10/17/2014

Cocoa and Swift make a great team for building apps. Cocoa is the framework in which Mac OS X itself is written, and Swift is the new language that makes working with Cocoa classes and APIs easier than ever before. Here Todd Perkins walks you through the steps to creating Mac applications with this powerhouse combo. He'll take you through the basic concepts behind Cocoa, Swift, and the development environment known as Xcode, and then go straight into development. Learn how to create interface elements and connect them to code, work with bindings and key-value coding, and debug your applications and submit them to the Apple Store.

Topics include:

Creating your first Cocoa app

Understanding the relationship between Cocoa and Swift

Creating a playground

Working with variables, functions, arrays, and loops

Creating basic interactions and quick connections

Building custom controller classes

Using delegates

Creating and arranging interface elements

Using data controls

Debugging and troubleshooting

Distributing a Cocoa application

Skill Level Beginner

4h

Duration

269,955

Views

Show MoreShow Less

Q: This course was updated on 5/03/2016. What changed?

A: We added one new tutorial explaining how the Swift 2 and Xcode 7 updates affect the training in this course (which was recorded using Swift 1 and Xcode 6). The changes are minor, so Todd provides some short tips for using optionals, coding with NSDate() and NSURL(string:), and working with other smaller changes in the framework.