def awakeFromNib(self):
    self.SetupDataStructures()
    self.resource_dir = os.path.join(os.getcwd(), 'namebench.app', 'Contents', 'Resources')

    conf_file = util.FindDataFile('config/namebench.cfg')
    (self.options, self.supplied_ns, self.global_ns, self.regional_ns) = config.GetConfiguration(filename=conf_file)
    # TODO(tstromberg): Consider moving this into a thread for faster loading.
    self.UpdateStatus('Discovering sources')
    self.LoadDataSources()
    self.UpdateStatus('Discovering location')
    self.DiscoverLocation()
    self.UpdateStatus('Populating Form...')
    self.setFormDefaults()
    self.UpdateStatus('namebench %s is ready!' % version.VERSION)
Initializes our class, called automatically by Cocoa.
dataset/ETHPy150Open catap/namebench/cocoa/controller.py/controller.awakeFromNib