Let’s extend Mac Passer Rating by one more step, and in the process see how to handle custom classes in Interface Builder. In this chapter, I’ll add another popover, to be shown when you double-click a row in the MPRPasser table. The popover will show a simple scrolling bar graph comparing MPRPass attempts and completions, by game.
You already know how to create and populate an
NSPopover. The popover needs an
NSViewController. It turns out that the view controller will have to do a little bit of work, so you’ll need to use File →New →File. . . (N) to create an Objective-C subclass of