ACEView

@objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports

This class provides the main public interface for the ACEView.

  • The ACEView delegate.

    See also

    ACEViewDelegate

    Declaration

    Swift

    public var delegate: ACEViewDelegate?
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Sets the cursor to the editor view.

    Declaration

    Swift

    public func focus()
  • Retrieve and Set the content of the underlying ACE Editor.

    Uses editor.getValue() & editor.setValue().

    Returns

    The ACE Editor content.

    Declaration

    Swift

    public var string: String

    Return Value

    The ACE Editor content.

  • Set the syntax highlighting mode.

    Uses editor.getSession().setMode().

    See also

    ACEMode

    Declaration

    Swift

    public var mode: ACEMode
  • Set the theme.

    Uses editor.setTheme().

    See also

    ACETheme

    Declaration

    Swift

    public var theme: ACETheme
  • Turn wrapping behaviour on or off.

    Specifies whether to use wrapping behaviors or not, i.e. automatically wrapping the selection with characters such as brackets when such a character is typed in.

    Uses editor.setWrapBehavioursEnabled().

    See also

    useSoftWrap

    See also

    wrapLimitRange

    Declaration

    Swift

    public var wrappingBehavioursEnabled: Bool
  • Sets whether or not line wrapping is enabled.

    Define the wrap limit with wrapLimitRange.

    Uses editor.getSession().setUseWrapMode().

    See also

    wrappingBehavioursEnabled

    See also

    wrapLimitRange

    Declaration

    Swift

    public var useSoftWrap: Bool
  • Sets the boundaries of wrap.

    Uses editor.getSession().setWrapLimitRange().

    See also

    wrappingBehavioursEnabled

    See also

    useSoftWrap

    Declaration

    Swift

    public var wrapLimitRange: NSRange
  • Show or hide invisible characters.

    Uses editor.setShowInvisibles().

    Declaration

    Swift

    public var showInvisibles: Bool
  • Set read only mode. Prevents content from being changed interactively.

    Uses editor.setReadOnly().

    Declaration

    Swift

    public var readOnly: Bool
  • Show or hide folding widgets.

    Uses editor.setShowFoldWidgets().

    Declaration

    Swift

    public var showFoldWidgets: Bool
  • Enable fading of folding widgets.

    Uses editor.setFadeFoldWidgets().

    Declaration

    Swift

    public var fadeFoldWidgets: Bool
  • Highlight the active line.

    Uses editor.setHighlightActiveLine().

    Declaration

    Swift

    public var highlightActiveLine: Bool
  • Highlight the gutter line.

    Uses editor.setHighlightGutterLine().

    Warning

    The ACE Editor documentation for this behaviour is incomplete.

    Declaration

    Swift

    public var highlightGutterLine: Bool
  • Highlight the selected word.

    Uses editor.setHighlightSelectedWord().

    Declaration

    Swift

    public var highlightSelectedWord: Bool
  • Display indent guides.

    Uses editor.setDisplayIndentGuides().

    Declaration

    Swift

    public var displayIndentGuides: Bool
  • Enable animated scrolling.

    Uses editor.setAnimatedScroll().

    Warning

    The ACE Editor documentation for this behaviour is incomplete.

    Declaration

    Swift

    public var animatedScroll: Bool
  • Change the mouse scroll speed.

    Uses editor.setScrollSpeed().

    Declaration

    Swift

    public var scrollSpeed: Int
  • Set the keyboard handler.

    Uses editor.setKeyboardHandler().

    See also

    ACETheme

    Declaration

    Swift

    public var keyboardHandler: ACEKeyboardHandler
  • Enable basic autocomplete.

    Uses [editor.setOptions({ enableBasicAutocompletion: BOOL })]

    Declaration

    Swift

    public var basicAutoCompletion: Bool
  • Enable live autocompletion.

    Uses [editor.setOptions({ enableLiveAutocompletion: BOOL })]

    Declaration

    Swift

    public var liveAutocompletion: Bool
  • Enable snippets.

    Uses [editor.setOptions({ enableSnippets: BOOL })]

    Declaration

    Swift

    public var snippets: Bool
  • Enable emmet.

    Uses [editor.setOptions({ emmet: BOOL })]

    Declaration

    Swift

    public var emmet: Bool
  • Sets the column defining where the print margin should be.

    Uses editor.setPrintMarginColumn().

    Declaration

    Swift

    public var printMarginColumn: Int
  • Shows the print margin

    Uses editor.setShowPrintMargin().

    Declaration

    Swift

    public var showPrintMargin: Bool
  • Sets the font size.

    Uses editor.setFontSize().

    Declaration

    Swift

    public var fontSize: Int
  • Sets the font family.

    Uses [editor.setOptions({ fontFamily: NSString })]

    Declaration

    Swift

    public var fontFamily: String
  • Moves the cursor to the specified line number, and also into the indiciated column.

    Uses [editor.goToLine()].

    • Parameters:
    • line: The line number to go to
    • column: The column number to go to
    • animated: If true animates scolling

    Declaration

    Swift

    public func goToLine(line: Int, column:Int, animated: Bool)
  • Enable line numbers.

    Uses [editor.setOption(‘showLineNumbers’, BOOL )]

    Declaration

    Swift

    public var showLineNumbers: Bool
  • Enable gutter.

    Uses [editor.setOption(‘showGutter’, BOOL )]

    Declaration

    Swift

    public var showGutter: Bool
  • Returns the number of rows in the document.

    Uses [editor.getSession().getLength()]

    Declaration

    Swift

    public var length: Int
  • Returns a verbatim copy of the given line as it is in the document.

    Uses [editor.getSession().getLine(Number row)]

    Parameter

    line The line to get

    Returns

    The requested line

    Declaration

    Swift

    public func getLine(line: Int) -> String

    Return Value

    The requested line

  • The current new line mode.

    Uses EditSession.getNewLineMode().

    Declaration

    Swift

    public var newLineMode: String
  • Pass true to enable the use of soft tabs.

    Soft tabs means you’re using spaces instead of the tab character (’\t’).

    Uses EditSession.setUseSoftTabs(Boolean useSoftTabs).

    Declaration

    Swift

    public var useSoftTabs: Bool
  • Set the number of spaces that define a soft tab.

    For example, passing in 4 transforms the soft tabs to be equivalent to four spaces. This function also emits the changeTabSize event.

    Uses EditSession.setTabSize(Number tabSize).

    Declaration

    Swift

    public var tabSize: Int
  • Searches for all occurances options.needle.

    If found, this method returns an array of Ranges where the text first occurs. If options.backwards is true, the search goes backwards in the session.

    Uses Search.findAll(EditSession session).

    Parameter

    options A dictionary of search options.

    Declaration

    Swift

    public func findAll(options: NSDictionary) -> [ACESearchItem]?
  • Replaces all occurances of options.needle with the value in replacement.

    Uses Editor.replaceAll(String replacement, Object options).

    Parameter

    Parameter replacement: The replacement value

    Parameter

    Parameter options: A dictionary of search options

    Declaration

    Swift

    public func replaceAll(replacement: String, options: NSDictionary)
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports
  • Undocumented

    Declaration

    Swift

    @objc public class ACEView: NSScrollView, NSTextFinderClient, WebFrameLoadDelegate, WebUIDelegate, ACEViewJSExports