ACEViewDelegate

@objc public protocol ACEViewDelegate

The ACEViewDelegate protocol is implemented by objects that wish to monitor the ACEView for content changes.

  • Posts a notification that the text has changed and forwards this message to the delegate if it responds.

    Parameter

    Parameter notification: The ACETextDidEndEditingNotification notification that is posted to the default notification center.

    Declaration

    Swift

    optional func textDidChange(notification: NSNotification)

    Parameters

    notification

    The ACETextDidEndEditingNotification notification that is posted to the default notification center.

  • Provides the print settings to be used for a print job. Defaults to application shared settings.

    Declaration

    Swift

    optional func printInformation() -> NSPrintInfo
  • Provides the desired font size for printing. Defaults to 10px

    Declaration

    Swift

    optional func printFontSize() -> Int
  • Provides the desired height for page headers and footers. Defaults to 0.0px

    Declaration

    Swift

    optional func printHeaderHeight() -> Float
  • Undocumented

    Declaration

    Swift

    @objc public protocol ACEViewDelegate
  • Draws the headers and footers. Defaults to no headers and footers

    Declaration

    Swift

    optional func drawPrintHeaderForPage(page: Int, inRect: NSRect)
  • Undocumented

    Declaration

    Swift

    @objc public protocol ACEViewDelegate
  • Called before starting and ending a print job

    Declaration

    Swift

    optional func startPrintOperation(printOperation: NSPrintOperation)
  • Undocumented

    Declaration

    Swift

    @objc public protocol ACEViewDelegate
  • Called after the ACEView has been loaded

    Declaration

    Swift

    optional func aceViewDidLoad()