from AppKit import * from PyObjCTools import AppHelper from defcon import addRepresentationFactory from defconAppKit.representationFactories import registerAllFactories from area51Lib.interface.appDelegate import Area51AppDelegate from area51Lib.interface.document import Area51Document from area51Lib.interface.glyphCellFactory import Area51GlyphCellFactory # this will enable verbose tracebacks # it is useful for debugging. import objc objc.setVerbose(True) # this will register all of the needed # representation factories for defconAppKit registerAllFactories() # register custom factories addRepresentationFactory("Area51.GlyphCellFactory", Area51GlyphCellFactory) # run the app if __name__ == "__main__": AppHelper.runEventLoop()