Join Simon Allardice for an in-depth discussion in this video Creating alert panels and alert sheets, part of Cocoa Essential Training.
One of the first questions I'm often asked is how do I get Cocoa to pop up what…might be called a message box, or an alert box, in other languages?…I am going to make a new Cocoa Application--because it is an alert that we are…dealing with--this can either be done as what's called an Alert Panel, or an…Alert Sheet, and I will show you both.…I will just Save that to my Desktop. And all I'm going to do is create a very…straightforward application with a couple of buttons on it.…I am doing this from scratch again just so we're getting into that habit of…dragging on buttons and connecting them to our code.…
First one will cause an Alert Panel, and then we'll do another one, which will…cause an Alert Sheet--and I don't really need so big a user interface here, so I…will just shrink this one down.…Of course, these buttons right now aren't doing anything, and I want them to, so…I'm going to switch into the Assistant view, and hopefully we are seeing…AppDelegate.h, if not, we can just select it from the Jump bar. And first I'm…
- Installing the tools
- Creating your first app
- Adding basic interactions
- Understanding the Cocoa application life cycle
- Creating custom controller classes
- Creating alerts
- Understanding delegation
- Working with buttons, text fields, sliders, and more
- Using layout and data views
- Adding and editing toolbars
- Using key-value coding
- Binding objects
- Debugging code
- Distributing an application
- Creating icons and full-screen apps
Skill Level Beginner
1. Getting Started
2. Core Cocoa Skills
4. Creating User Interfaces
5. Arranging User Interfaces
6. Using Data Controls
7. Debugging and Troubleshooting
8. Distributing an Application
9. Finishing Touches
Creating full-screen apps6m 43s
Final thoughts4m 10s
- 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.