Handling a button press is one of the most basic interactions in a Cocoa application. This video shows how that works, and explains the concepts behind interaction in Cocoa development.
- [Instructor] Now, let's create some basic interaction…between user interface objects and code.…So I'm here in a Cocoa application that I just created,…and I'm going to choose my window.…Remember that I'm in my MainMenu.xib file right here.…So here, what I want to do is just create a label,…and change it when I click on a button.…So I'm going to click and drag…a push button from the object library.…Remember, you need to show the utility area…to be able to see this,…and you need to be on the object library,…which is the circle with the square inside of it.…
So I'm going to click and drag out a push button,…put it right in the middle.…You can change the text by double-clicking the button,…then writing the text that you want here, like that,…and pressing return on the keyboard.…Now, I'll filter for a label,…and then click and drag one above the button.…And for the label, I'm actually going…to expand it a little bit by clicking…and dragging it out, just like that.…And then I'm going to align it to the center,…and to do that, I'm going to have the label selected here,…
- Installing your development tools
- Working with Xcode and the MVC pattern
- Creating basic interactions
- Creating delegate classes
- Building a user interface
- Laying out the UI
- Working with data and table views
- Binding data objects to the UI
- Debugging your app
- Distributing the app
Skill Level Beginner
1. Get Started
2. Core Cocoa Skills
4. Create User Interfaces
5. Arrange User Interfaces
6. Use Data Controls
7. Debug and Troubleshoot
8. Distribute an Application
9. Finishing Touches
Create full screen apps1m 51s
Next steps1m 21s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.