Join Todd Perkins for an in-depth discussion in this video Using the slider control, part of Cocoa with Swift Essential Training.
- View Offline
- Exercise Files
…User interface elements in Cocoa actually allow you to…do a lot more than you may expect, without writing any code.…As an example of this, let's work with a slider.…Now I'm going to grab a horizontal slider, and drag it under the screen.…Note, that they're also vertical and circular sliders.…Now these work in the same way as far as the code goes and…as far as what I'm demonstrating.…So we'll just use the horizontal slider for now.…Now I've actually searched for slider in the Object Library.…
So I'm going to click and drag a slider onto the screen.…And stretch it out using the handles, to fill the width of the window.…And now I'm going to shrink that window just a little bit.…That should be good.…Now I'm going to put some labels on the slider.…Now, the reason why we're going to use labels, is because we're going…to follow how OSX lays out, its sliders.…Now, if I Tab over to System Preferences, I'm looking at the Energy Saver section.…
Now in here, I can see the user interface element of the slider, and…it has a ticker, and it's pointing downward.…
- 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
1. Getting Started
Installing the tools1m 14s
2. Introduction to Swift
3. Core Cocoa Skills
5. Creating User Interfaces
6. Arranging User Interfaces
7. Using Data Controls
8. Debugging and Troubleshooting
9. Distributing an Application
10. Finishing Touches
Creating full-screen apps4m 56s
Next steps1m 36s
- 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.