 
     @previewView = new KDView()
 
-
     @addSubView new KDSplitView
       type      : 'horizontal'
       resizable : false


  # ### Compile App
  #
  compileApp: (callback) ->
    new KDNotificationView
      title: 'Compiling...'

    KD.singletons.vmController.run
      vmName    : @options.vmName
      withArgs  : "kdc #{Settings.APP_DIR}"
      (err, res) ->
        # Currently ignoring the response of kdc.
        callback err


  # ### Preview App
  #
  previewApp: ->
    new KDNotificationView
      title: 'Loading preview...'

    @indexjsHelper.fetchContents (err, res) =>
      if err? then new KDNotificationView title: err.message
      console.log 'Fetched! '+ res?.length

      # By destroying the subviews, we ensure (or try to) that the newly

      notify 'Manifest could not load, halting app.'
      return

    @options.targetApp = {}
    # Soon we'll offer targetted VMs, but for now default it.
    @options.targetApp.vmName = @options.vmName



