Setting our goals
In this chapter, we will recreate the window we created in the previous chapter, including its table view and text view. We'll also add a couple of tweaks here and there, to produce the familiar looking window illustrated here:
The steps involved
Broadly speaking, the process will look like this:
- We will add
NSTableView
andNSTextView
properties to the View Controller - We will then build and configure the views and their subviews, including their various visual aspects
- We will adopt data source and delegate protocols in the
ViewController
class and implement their required methods
Beyond the visuals
In order to reproduce the functionality, as well as the appearance of the previous chapter's window, we will perform these additional steps:
- We will create a property list XML file in the app's main bundle.
- We will look at how to load data from the main bundle and decode it for use in the app.
- We will create a wrapper object for Swift data structures to make them compatible with key-value...