Learn how to create method connections in code from the UI classes to the back end classes created earlier.
- [Instructor] In the last video we exposed…all of our text boxes as outlets inside of Xcode…and this in turn exposes into our C# code…back in Visual Studio.…The next thing we need to do is to create a click handler…for our Generate Character button.…The process is pretty much the same.…I'll just click on the button, Generate Character.…I'm going to come up to the top here…and I'm going to verify that I'm in fact in viewcontroller.h.…
If you're in either of the other two,…you don't want to be in there, you want to be in this one.…This is the one that Visual Studio actually reads.…So now that I'm sure I'm in the right file,…I need only control-click on my button.…Just like before, I'm going to draw a line…down here to the bottom.…And this time, instead of an outlet,…I'm going to change this to action.…So an action is more like a method,…whereas an outlet is more like a property.…For the name I'm going to follow the same convention…that I've been following,…which is it to name it exactly…what Visual Studio for Windows would have named it…
AuthorBruce Van Horn
- Exploring C# on a Mac
- Creating a reusable code library
- Classes and properties
- Loops, arrays, and lists
- Creating a console app
- Creating a command-line app
- Creating a Mac desktop app
- Creating a UI with view controllers and actions
Skill Level Beginner
Docker for .NET Developers with Visual Studiowith Lee Brandt46m 52s Intermediate
1. C# on the Mac?
2. Getting Started with C#
3. Deeper into C#
4. Creating a Mac App
Next steps3m 14s
- 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.