Learn about the purpose of the view controller and code a button handler.
- [Instructor] So we're back in Visual Studio at this point…having set up everything that we need…to get the basics running in our Main.storyboard file…which we edited in Xcode.…Now that we've exposed all of those outlets and actions,…let's put them to use.…Let's go into the ViewController.cs file.…And just so I don't get confused,…I'm going to go ahead and roll this little triangle up.…As you can see, there are some basic methods already in here…including a constructor and a few overrides.…
Any time you see the word override,…you generally want to look up to the top…of the class definition, and you can see here…that we have ViewController which is the name of our class,…but it's implementing NSViewController.…And if I hover over it, I can see…that that's a class inside of AppKit.…So ViewController is inheriting from NSViewController,…and that's what the overrides are.…They're actually overriding methods…that are in this NSViewController class.…
You've actually seen an override before.…Earlier we used an override to change the functionality…
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
New Features Xamarin and Visual Studio 2017with Kevin Ford1h 44m Intermediate
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.