OSAKit Changes for Swift
OSAKit
Modified OSAScriptView
Declaration | Protocols | |
---|---|---|
From | class OSAScriptView : NSTextView { var source: String? var usesScriptAssistant: Bool var usesTabs: Bool var tabWidth: Int var wrapsLines: Bool var indentsWrappedLines: Bool var indentWidth: Int func toggleBaseWritingDirection(_ sender: Any?) @IBAction func orderFrontSharingServicePicker(_ sender: Any?) @IBAction func toggleQuickLookPreviewPanel(_ sender: Any?) func updateQuickLookPreviewPanel() var smartInsertDeleteEnabled: Bool func smartDeleteRange(forProposedRange proposedCharRange: NSRange) -> NSRange func toggleSmartInsertDelete(_ sender: Any?) func smartInsert(for pasteString: String, replacing charRangeToReplace: NSRange, before beforeString: AutoreleasingUnsafeMutablePointer<NSString?>?, after afterString: AutoreleasingUnsafeMutablePointer<NSString?>?) func smartInsert(beforeStringFor pasteString: String, replacing charRangeToReplace: NSRange) -> String? func smartInsert(afterStringFor pasteString: String, replacing charRangeToReplace: NSRange) -> String? var isAutomaticQuoteSubstitutionEnabled: Bool func toggleAutomaticQuoteSubstitution(_ sender: Any?) var isAutomaticLinkDetectionEnabled: Bool func toggleAutomaticLinkDetection(_ sender: Any?) var isAutomaticDataDetectionEnabled: Bool func toggleAutomaticDataDetection(_ sender: Any?) var isAutomaticDashSubstitutionEnabled: Bool func toggleAutomaticDashSubstitution(_ sender: Any?) var isAutomaticTextReplacementEnabled: Bool func toggleAutomaticTextReplacement(_ sender: Any?) var isAutomaticSpellingCorrectionEnabled: Bool func toggleAutomaticSpellingCorrection(_ sender: Any?) var enabledTextCheckingTypes: NSTextCheckingTypes func checkText(in range: NSRange, types checkingTypes: NSTextCheckingTypes, options options: [String : Any] = [:]) func handleTextCheckingResults(_ results: [NSTextCheckingResult], forRange range: NSRange, types checkingTypes: NSTextCheckingTypes, options options: [String : Any] = [:], orthography orthography: NSOrthography, wordCount wordCount: Int) func orderFrontSubstitutionsPanel(_ sender: Any?) func checkTextInSelection(_ sender: Any?) func checkTextInDocument(_ sender: Any?) var usesFindPanel: Bool var usesFindBar: Bool var isIncrementalSearchingEnabled: Bool var selectedRanges: [NSValue] func setSelectedRanges(_ ranges: [NSValue], affinity affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool) func setSelectedRange(_ charRange: NSRange, affinity affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool) var selectionAffinity: NSSelectionAffinity { get } var selectionGranularity: NSSelectionGranularity var selectedTextAttributes: [String : Any] @NSCopying var insertionPointColor: NSColor func updateInsertionPointStateAndRestartTimer(_ restartFlag: Bool) var markedTextAttributes: [String : Any]? var linkTextAttributes: [String : Any]? var displaysLinkToolTips: Bool var acceptsGlyphInfo: Bool var usesRuler: Bool var usesInspectorBar: Bool var isContinuousSpellCheckingEnabled: Bool func toggleContinuousSpellChecking(_ sender: Any?) var spellCheckerDocumentTag: Int { get } var isGrammarCheckingEnabled: Bool func toggleGrammarChecking(_ sender: Any?) func setSpellingState(_ value: Int, range charRange: NSRange) var typingAttributes: [String : Any] func shouldChangeText(inRanges affectedRanges: [NSValue], replacementStrings replacementStrings: [String]?) -> Bool var rangesForUserTextChange: [NSValue]? { get } var rangesForUserCharacterAttributeChange: [NSValue]? { get } var rangesForUserParagraphAttributeChange: [NSValue]? { get } func shouldChangeText(in affectedCharRange: NSRange, replacementString replacementString: String?) -> Bool func didChangeText() var rangeForUserTextChange: NSRange { get } var rangeForUserCharacterAttributeChange: NSRange { get } var rangeForUserParagraphAttributeChange: NSRange { get } var allowsDocumentBackgroundColorChange: Bool @NSCopying var defaultParagraphStyle: NSParagraphStyle? var allowsUndo: Bool func breakUndoCoalescing() var isCoalescingUndo: Bool { get } var allowsImageEditing: Bool func showFindIndicator(for charRange: NSRange) var usesRolloverButtonForSelection: Bool unowned(unsafe) var delegate: NSTextViewDelegate? var isEditable: Bool var isSelectable: Bool var isRichText: Bool var importsGraphics: Bool var drawsBackground: Bool @NSCopying var backgroundColor: NSColor var isFieldEditor: Bool var usesFontPanel: Bool var isRulerVisible: Bool func setSelectedRange(_ charRange: NSRange) var allowedInputSourceLocales: [String]? func dragSelection(with event: NSEvent, offset mouseOffset: NSSize, slideBack slideBack: Bool) -> Bool func dragImageForSelection(with event: NSEvent, origin origin: NSPointPointer?) -> NSImage? var acceptableDragTypes: [String] { get } func dragOperation(for dragInfo: NSDraggingInfo, type type: String) -> NSDragOperation func cleanUpAfterDragOperation() var writablePasteboardTypes: [String] { get } func writeSelection(to pboard: NSPasteboard, type type: String) -> Bool func writeSelection(to pboard: NSPasteboard, types types: [String]) -> Bool var readablePasteboardTypes: [String] { get } func preferredPasteboardType(from availableTypes: [String], restrictedToTypesFrom allowedTypes: [String]?) -> String? func readSelection(from pboard: NSPasteboard, type type: String) -> Bool func readSelection(from pboard: NSPasteboard) -> Bool class func registerForServices() func validRequestor(forSendType sendType: String, returnType returnType: String) -> Any? func pasteAsPlainText(_ sender: Any?) func pasteAsRichText(_ sender: Any?) func complete(_ sender: Any?) var rangeForUserCompletion: NSRange { get } func completions(forPartialWordRange charRange: NSRange, indexOfSelectedItem index: UnsafeMutablePointer<Int>) -> [String]? func insertCompletion(_ word: String, forPartialWordRange charRange: NSRange, movement movement: Int, isFinal flag: Bool) } | -- |
To | class OSAScriptView : NSTextView { var source: String? var usesScriptAssistant: Bool var usesTabs: Bool var tabWidth: Int var wrapsLines: Bool var indentsWrappedLines: Bool var indentWidth: Int func toggleBaseWritingDirection(_ sender: Any?) @IBAction func orderFrontSharingServicePicker(_ sender: Any?) @IBAction func toggleQuickLookPreviewPanel(_ sender: Any?) func updateQuickLookPreviewPanel() var smartInsertDeleteEnabled: Bool func smartDeleteRange(forProposedRange proposedCharRange: NSRange) -> NSRange func toggleSmartInsertDelete(_ sender: Any?) func smartInsert(for pasteString: String, replacing charRangeToReplace: NSRange, before beforeString: AutoreleasingUnsafeMutablePointer<NSString?>?, after afterString: AutoreleasingUnsafeMutablePointer<NSString?>?) func smartInsert(beforeStringFor pasteString: String, replacing charRangeToReplace: NSRange) -> String? func smartInsert(afterStringFor pasteString: String, replacing charRangeToReplace: NSRange) -> String? var isAutomaticQuoteSubstitutionEnabled: Bool func toggleAutomaticQuoteSubstitution(_ sender: Any?) var isAutomaticLinkDetectionEnabled: Bool func toggleAutomaticLinkDetection(_ sender: Any?) var isAutomaticDataDetectionEnabled: Bool func toggleAutomaticDataDetection(_ sender: Any?) var isAutomaticDashSubstitutionEnabled: Bool func toggleAutomaticDashSubstitution(_ sender: Any?) var isAutomaticTextReplacementEnabled: Bool func toggleAutomaticTextReplacement(_ sender: Any?) var isAutomaticSpellingCorrectionEnabled: Bool func toggleAutomaticSpellingCorrection(_ sender: Any?) var enabledTextCheckingTypes: NSTextCheckingTypes func checkText(in range: NSRange, types checkingTypes: NSTextCheckingTypes, options options: [String : Any] = [:]) func handleTextCheckingResults(_ results: [NSTextCheckingResult], forRange range: NSRange, types checkingTypes: NSTextCheckingTypes, options options: [String : Any] = [:], orthography orthography: NSOrthography, wordCount wordCount: Int) func orderFrontSubstitutionsPanel(_ sender: Any?) func checkTextInSelection(_ sender: Any?) func checkTextInDocument(_ sender: Any?) var usesFindPanel: Bool var usesFindBar: Bool var isIncrementalSearchingEnabled: Bool var selectedRanges: [NSValue] func setSelectedRanges(_ ranges: [NSValue], affinity affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool) func setSelectedRange(_ charRange: NSRange, affinity affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool) var selectionAffinity: NSSelectionAffinity { get } var selectionGranularity: NSSelectionGranularity var selectedTextAttributes: [String : Any] @NSCopying var insertionPointColor: NSColor func updateInsertionPointStateAndRestartTimer(_ restartFlag: Bool) var markedTextAttributes: [String : Any]? var linkTextAttributes: [String : Any]? var displaysLinkToolTips: Bool var acceptsGlyphInfo: Bool var usesRuler: Bool var usesInspectorBar: Bool var isContinuousSpellCheckingEnabled: Bool func toggleContinuousSpellChecking(_ sender: Any?) var spellCheckerDocumentTag: Int { get } var isGrammarCheckingEnabled: Bool func toggleGrammarChecking(_ sender: Any?) func setSpellingState(_ value: Int, range charRange: NSRange) var typingAttributes: [String : Any] func shouldChangeText(inRanges affectedRanges: [NSValue], replacementStrings replacementStrings: [String]?) -> Bool var rangesForUserTextChange: [NSValue]? { get } var rangesForUserCharacterAttributeChange: [NSValue]? { get } var rangesForUserParagraphAttributeChange: [NSValue]? { get } func shouldChangeText(in affectedCharRange: NSRange, replacementString replacementString: String?) -> Bool func didChangeText() var rangeForUserTextChange: NSRange { get } var rangeForUserCharacterAttributeChange: NSRange { get } var rangeForUserParagraphAttributeChange: NSRange { get } var allowsDocumentBackgroundColorChange: Bool @NSCopying var defaultParagraphStyle: NSParagraphStyle? var allowsUndo: Bool func breakUndoCoalescing() var isCoalescingUndo: Bool { get } var allowsImageEditing: Bool func showFindIndicator(for charRange: NSRange) var usesRolloverButtonForSelection: Bool unowned(unsafe) var delegate: NSTextViewDelegate? var isEditable: Bool var isSelectable: Bool var isRichText: Bool var importsGraphics: Bool var drawsBackground: Bool @NSCopying var backgroundColor: NSColor var isFieldEditor: Bool var usesFontPanel: Bool var isRulerVisible: Bool func setSelectedRange(_ charRange: NSRange) var allowedInputSourceLocales: [String]? func dragSelection(with event: NSEvent, offset mouseOffset: NSSize, slideBack slideBack: Bool) -> Bool func dragImageForSelection(with event: NSEvent, origin origin: NSPointPointer?) -> NSImage? var acceptableDragTypes: [String] { get } func dragOperation(for dragInfo: NSDraggingInfo, type type: String) -> NSDragOperation func cleanUpAfterDragOperation() var writablePasteboardTypes: [String] { get } func writeSelection(to pboard: NSPasteboard, type type: String) -> Bool func writeSelection(to pboard: NSPasteboard, types types: [String]) -> Bool var readablePasteboardTypes: [String] { get } func preferredPasteboardType(from availableTypes: [String], restrictedToTypesFrom allowedTypes: [String]?) -> String? func readSelection(from pboard: NSPasteboard, type type: String) -> Bool func readSelection(from pboard: NSPasteboard) -> Bool class func registerForServices() func validRequestor(forSendType sendType: String, returnType returnType: String) -> Any? func pasteAsPlainText(_ sender: Any?) func pasteAsRichText(_ sender: Any?) func complete(_ sender: Any?) var rangeForUserCompletion: NSRange { get } func completions(forPartialWordRange charRange: NSRange, indexOfSelectedItem index: UnsafeMutablePointer<Int>) -> [String]? func insertCompletion(_ word: String, forPartialWordRange charRange: NSRange, movement movement: Int, isFinal flag: Bool) } extension OSAScriptView : NSCandidateListTouchBarItemDelegate, NSTouchBarDelegate { var isAutomaticTextCompletionEnabled: Bool @IBAction func toggleAutomaticTextCompletion(_ sender: Any?) var allowsCharacterPickerTouchBarItem: Bool func updateTouchBarItemIdentifiers() func updateTextTouchBarItems() func updateCandidates() var candidateListTouchBarItem: NSCandidateListTouchBarItem<AnyObject>? { get } } | NSCandidateListTouchBarItemDelegate, NSTouchBarDelegate |