 ###
   todo:
-   
+
     - make save dialog a view with pistachio
     - put listeners in methods
     - make this splittable
-    
+
 ###
 
 class AceView extends JView


    items : [
      { type : 'customView', view : new AceSettingsView (delegate : @)}
    ]                                           

  getSaveMenu:->


      icon      : yes
      iconOnly  : yes
      iconClass : "compile"
      callback  : =>
        @getSingleton('kodingAppsController').compileApp @getData().path, =>
          @ace.notify "App compiled!", "success"

    @compileButton.hide() unless /\.kdapp\//.test @getData().path

    @setViewListeners()

  setViewListeners:->

    @advancedSettings.on "ace.changeSetting", (setting, value)=>
      @ace["set#{setting.capitalize()}"]? value

    @advancedSettings.emit "ace.settingsView.setDefaults", @ace

    $spans = @caretPosition.$('span')

    @ace.on "ace.change.cursor", (cursor)=>
