O'Reilly logo

Getting Started with LevelDB by Andy Dent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting the database to the NSTableView

In simple OS X apps, the AppDelegate object takes the role of the ViewController class in iOS apps. So, all of these interface methods and outlets are in GSwLDB06osxAppDelegate. The graphical interface is in MainMenu06.xib.

  • The View All button and the View – All Records with Prefixes menu item are connected to the (IBAction)viewAllRecords
  • The View Names button and View – Names menu item are connected to the (IBAction)viewNamesOnly
  • The View Phones button and the View – Phone numbers menu item are connected to the (IBAction)viewPhonesOnly
  • The action of the NSSearchField class, and the datasource and delegate outlets of the NSTableView class are connected as in Sample06

The expanded declaration of GSwLDB06osxAppDelegate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required