         self.windowController = NSWindowController(windowNibName: "MetadataWindow", owner: self)
                 
         NSLog("Main thread=%@", NSThread.isMainThread() ? "true":"false")
-
         
         NSLog("init() done")
     

                dispatch_sync(dispatch_get_main_queue())
                {
                    NSLog("Setting data source")
                    NSLog("json %@ nil", json==nil ? " true" : "false")
                    self.windowController!.showWindow(self)
                    self.metadataDataSource = self.myTableView.dataSource() as? MetadataDataSource
                    self.metadataDataSource!.dataDict = json
                    self.myTableView.reloadData()
                    NSLog("Data source set")
                }
        }

        remote.getPath()
        {
            (configuredPath: NSURL?) -> () in
            dispatch_sync(dispatch_get_main_queue())
            {
                self.myFolderURL = configuredPath
                // Set up the directory we are syncing.
                if self.myFolderURL != nil
