Join Simon Allardice for an in-depth discussion in this video Adding and editing toolbars, part of Cocoa Essential Training.
So a very common need for a Cocoa application is adding the classic Macintosh…style Toolbar, as we're looking at right now in Xcode.…I have a new Cocoa application, I have just created, I haven't done anything to it…yet, and I'm going to switch over to these Windows & Menus section of the Object…Library, and this is where we find the Toolbar.…Simply drag and drop it. It's one of the few times it doesn't matter exactly…where you put it because Xcode is going to say, "I don't care where you drag…this, the Toolbar always goes at the top."…Now begins with a couple of icons for Color, Fonts, and Print, just to give you…something to work with, but you can delete those if you want to.…
Now the Toolbar itself doesn't have a lot of options.…If I have it selected and look at my Attributes Inspector, I get a choice here…of whether to show the Icon and Label or just the Icon or just the Label, but…other than that, there is not really a lot going on here.…So I'll leave at the default state of Icon and Label.…The first request of most people is how do I add something to it?…
- 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.