Join Bruce Van Horn for an in-depth discussion in this video Creating the table view delegate: Part 2, part of Visual Studio for Mac.
- We need to add one more method to our inventory…table delegate class in order to make our table…work properly.…So I'm going to add the method below the constructor…and I'll type in public,…override, N S view.…And I'm going to call this GetViewForItem.…So we're overriding something that's in the base class.…Which dictates the name and it has the match…what's in the base class.…For our arguments we need to pass in three arguments.…
The first one is NSTableView.…And I'll just call that one tableView.…The second one is NSTableColumn.…And I'll just call that one tableColumn.…And last we're going to pass in and integer…but it's going to be an integer for that we haven't seen yet.…It's going to be an Nint.…N I N T.…This is a native integer which means in C sharp…it's actually a struct if you were to look it up…and you can see that there's a little S next to it…in the code hint.…
So if you remember structs are like objects except…they are pretty much in-muteable and they can't really…do everything objects do.…So I always say it's like a light version of an object.…
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.