Learn how to add code to the overridden AwakFromNib method.
- [Instructor] Now that we've defined our…InventoryTableDelegate class in our…InventoryTableDataSource class,…we need to go into our ViewController…and actually use these classes that we've just created.…So I'll switch over to ViewController…and if you don't happen to have the tab still open,…of course, you can go over to the solution pad…and double click it here to open it.…What I'm going to do is I'm going to add a method in here.…And I'll put it right here on line 21 for me…right above the override for RepresentedObject…and right below the ViewDidLoad method.…
So I'll type in public override…void…AwakeFromNib.…And when I press tab it's going to put the code…that I need in there for me.…Now I don't actually need this export statement here,…so I'm going to back up over it and just get rid of it.…I'm often quoted as saying:…"Autocomplete isn't necessarily always your friend."…So now I've got what I was trying to type:…public override void AwakeFromNib.…
And then it automatically generated this…throw new System.NotImplementedException…
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.