Occasionally when you create a connection between a user interface object and your code, you'll run into an issue where the connection doesn't work as planned. This video shows how to troubleshoot those connection issues.
- [Narrator] One of the most common mistakes…for people new to Cocoa development…is having trouble creating connections…between UI objects and their code.…So let's run this application to see an example.…And this is pretty much the exact same code…that we had in the previous movie…when we set up our connections…to our user interface objects.…So I'm going to click the button…that says click, and what we expect to see…is that this buttonClicked method is triggered…And that the string value of the label…changes to "Clicked!"…So it's Label now, it should change…to clicked when I click the button.…
I clicked the button, and nothing happens…except for I get this error that says…EXC_BAD_INSTRUCTION.…There's not a whole lot of information…about what went wrong.…We just know that it went wrong.…I stop the application, and return to Xcode.…Now these mistakes as I mentioned…earlier are very common for new Cocoa developers.…And there are actually a lot of tools…built into Xcode to diagnose and to fix these problems.…
So let's go over to the project navigator,…
- 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.