diff --git a/_wip/custtvattr b/_wip/custtvattr new file mode 100755 index 00000000..d782e12f --- /dev/null +++ b/_wip/custtvattr @@ -0,0 +1,91 @@ +NSScrollView + backgroundColor NSCalibratedWhiteColorSpace 1 1 + drawsBackground 1 + borderType 2 + documentCursor + hasHorizontalScroller 0 + hasVerticalScroller 1 + autohidesScrollers 0 + hasHorizontalRuler 0 + hasVerticalRuler 0 + rulersVisible 0 + automaticallyAdjustsContentInsets 1 + contentInsets left:0 top:0 right:0 bottom:0 + scrollerInsets left:0 top:0 right:0 bottom:0 + scrollerKnobStyle 0 + scrollerStyle 1 + lineScroll 10 + horizontalLineScroll 10 + verticalLineScroll 10 + pageScroll 10 + horizontalPageScroll 10 + verticalPageScroll 10 + scrollsDynamically 1 + findBarPosition 1 + usesPredominantAxisScrolling 0 + horizontalScrollElasticity 0 + verticalScrollElasticity 0 + allowsMagnification 0 + magnification 1 + maxMagnification 4 + minMagnification 0.25 + +NSTextView + textContainerInset {0, 0} + textContainerOrigin {0, 0} + backgroundColor NSCalibratedWhiteColorSpace 1 1 + drawsBackground 1 + allowsDocumentBackgroundColorChange 0 + allowedInputSourceLocales (null) + allowsUndo 1 + isEditable 1 + isSelectable 1 + isFieldEditor 0 + isRichText 0 + importsGraphics 0 + defaultParagraphStyle (null) + allowsImageEditing 0 + isAutomaticQuoteSubstitutionEnabled 1 + isAutomaticLinkDetectionEnabled 0 + displaysLinkToolTips 1 + usesRuler 0 + isRulerVisible 0 + usesInspectorBar 0 + selectionAffinity 1 + selectionGranularity 0 + insertionPointColor NSNamedColorSpace System controlTextColor + selectedTextAttributes { + NSBackgroundColor = "NSNamedColorSpace System selectedTextBackgroundColor"; + NSColor = "NSNamedColorSpace System selectedTextColor"; +} + markedTextAttributes { + NSBackgroundColor = "NSCalibratedRGBColorSpace 1 0.866667 0.333333 1"; +} + linkTextAttributes { + NSColor = "NSCalibratedRGBColorSpace 0 0 1 1"; + NSCursor = ""; + NSUnderline = 1; +} + typingAttributes (null) + smartInsertDeleteEnabled 0 + isContinuousSpellCheckingEnabled 1 + isGrammarCheckingEnabled 0 + acceptsGlyphInfo 0 + usesFontPanel 0 + usesFindPanel 1 + enabledTextCheckingTypes 963 + isAutomaticDashSubstitutionEnabled 1 + isAutomaticDataDetectionEnabled 0 + isAutomaticSpellingCorrectionEnabled 1 + isAutomaticTextReplacementEnabled 1 + usesFindBar 0 + isIncrementalSearchingEnabled 0 + NSText: + font (null) + textColor (null) + baseWritingDirection -1 + maxSize {463, 10000000} + minSize {238, 133} + isVerticallyResizable 1 + isHorizontallyResizable 0 + diff --git a/_wip/deftvattr b/_wip/deftvattr new file mode 100755 index 00000000..2c79c899 --- /dev/null +++ b/_wip/deftvattr @@ -0,0 +1,91 @@ +NSScrollView + backgroundColor NSCalibratedWhiteColorSpace 1 1 + drawsBackground 1 + borderType 2 + documentCursor + hasHorizontalScroller 0 + hasVerticalScroller 1 + autohidesScrollers 0 + hasHorizontalRuler 0 + hasVerticalRuler 0 + rulersVisible 0 + automaticallyAdjustsContentInsets 1 + contentInsets left:0 top:0 right:0 bottom:0 + scrollerInsets left:0 top:0 right:0 bottom:0 + scrollerKnobStyle 0 + scrollerStyle 1 + lineScroll 10 + horizontalLineScroll 10 + verticalLineScroll 10 + pageScroll 10 + horizontalPageScroll 10 + verticalPageScroll 10 + scrollsDynamically 1 + findBarPosition 1 + usesPredominantAxisScrolling 0 + horizontalScrollElasticity 0 + verticalScrollElasticity 0 + allowsMagnification 0 + magnification 1 + maxMagnification 4 + minMagnification 0.25 + +NSTextView + textContainerInset {0, 0} + textContainerOrigin {0, 0} + backgroundColor NSCalibratedWhiteColorSpace 1 1 + drawsBackground 1 + allowsDocumentBackgroundColorChange 0 + allowedInputSourceLocales (null) + allowsUndo 1 + isEditable 1 + isSelectable 1 + isFieldEditor 0 + isRichText 1 + importsGraphics 0 + defaultParagraphStyle (null) + allowsImageEditing 0 + isAutomaticQuoteSubstitutionEnabled 1 + isAutomaticLinkDetectionEnabled 0 + displaysLinkToolTips 1 + usesRuler 1 + isRulerVisible 0 + usesInspectorBar 0 + selectionAffinity 0 + selectionGranularity 0 + insertionPointColor NSNamedColorSpace System controlTextColor + selectedTextAttributes { + NSBackgroundColor = "NSNamedColorSpace System selectedTextBackgroundColor"; + NSColor = "NSNamedColorSpace System selectedTextColor"; +} + markedTextAttributes { + NSBackgroundColor = "NSCalibratedRGBColorSpace 1 0.866667 0.333333 1"; +} + linkTextAttributes { + NSColor = "NSCalibratedRGBColorSpace 0 0 1 1"; + NSCursor = ""; + NSUnderline = 1; +} + typingAttributes (null) + smartInsertDeleteEnabled 1 + isContinuousSpellCheckingEnabled 1 + isGrammarCheckingEnabled 0 + acceptsGlyphInfo 1 + usesFontPanel 1 + usesFindPanel 1 + enabledTextCheckingTypes 963 + isAutomaticDashSubstitutionEnabled 1 + isAutomaticDataDetectionEnabled 0 + isAutomaticSpellingCorrectionEnabled 1 + isAutomaticTextReplacementEnabled 1 + usesFindBar 0 + isIncrementalSearchingEnabled 0 + NSText: + font (null) + textColor (null) + baseWritingDirection -1 + maxSize {463, 10000000} + minSize {238, 133} + isVerticallyResizable 1 + isHorizontallyResizable 0 + diff --git a/_wip/manualtvattr b/_wip/manualtvattr new file mode 100755 index 00000000..4d66634d --- /dev/null +++ b/_wip/manualtvattr @@ -0,0 +1,93 @@ +NSScrollView + backgroundColor NSNamedColorSpace System controlBackgroundColor + drawsBackground 1 + borderType 0 + documentCursor + hasHorizontalScroller 0 + hasVerticalScroller 0 + autohidesScrollers 0 + hasHorizontalRuler 0 + hasVerticalRuler 0 + rulersVisible 0 + automaticallyAdjustsContentInsets 1 + contentInsets left:0 top:0 right:0 bottom:0 + scrollerInsets left:0 top:0 right:0 bottom:0 + scrollerKnobStyle 0 + scrollerStyle 1 + lineScroll 10 + horizontalLineScroll 10 + verticalLineScroll 10 + pageScroll 10 + horizontalPageScroll 10 + verticalPageScroll 10 + scrollsDynamically 1 + findBarPosition 1 + usesPredominantAxisScrolling 1 + horizontalScrollElasticity 0 + verticalScrollElasticity 0 + allowsMagnification 0 + magnification 1 + maxMagnification 4 + minMagnification 0.25 + +NSTextView + textContainerInset {0, 0} + textContainerOrigin {0, 0} + backgroundColor NSCalibratedWhiteColorSpace 1 1 + drawsBackground 1 + allowsDocumentBackgroundColorChange 0 + allowedInputSourceLocales (null) + allowsUndo 0 + isEditable 1 + isSelectable 1 + isFieldEditor 0 + isRichText 1 + importsGraphics 0 + defaultParagraphStyle (null) + allowsImageEditing 0 + isAutomaticQuoteSubstitutionEnabled 1 + isAutomaticLinkDetectionEnabled 0 + displaysLinkToolTips 1 + usesRuler 1 + isRulerVisible 0 + usesInspectorBar 0 + selectionAffinity 0 + selectionGranularity 0 + insertionPointColor NSNamedColorSpace System controlTextColor + selectedTextAttributes { + NSBackgroundColor = "NSNamedColorSpace System selectedTextBackgroundColor"; + NSColor = "NSNamedColorSpace System selectedTextColor"; +} + markedTextAttributes { + NSBackgroundColor = "NSCalibratedRGBColorSpace 1 0.866667 0.333333 1"; +} + linkTextAttributes { + NSColor = "NSCalibratedRGBColorSpace 0 0 1 1"; + NSCursor = ""; + NSUnderline = 1; +} + typingAttributes { + NSFont = "\"Helvetica 12.00 pt. P [] (0x60000005f2f0) fobj=0x6000001e4f00, spc=3.33\""; +} + smartInsertDeleteEnabled 1 + isContinuousSpellCheckingEnabled 0 + isGrammarCheckingEnabled 0 + acceptsGlyphInfo 1 + usesFontPanel 1 + usesFindPanel 0 + enabledTextCheckingTypes 961 + isAutomaticDashSubstitutionEnabled 1 + isAutomaticDataDetectionEnabled 0 + isAutomaticSpellingCorrectionEnabled 1 + isAutomaticTextReplacementEnabled 1 + usesFindBar 0 + isIncrementalSearchingEnabled 0 + NSText: + font "Helvetica 12.00 pt. P [] (0x60000005f2f0) fobj=0x6000001e4f00, spc=3.33" + textColor (null) + baseWritingDirection -1 + maxSize {0, 10000000} + minSize {0, 0} + isVerticallyResizable 1 + isHorizontallyResizable 0 + diff --git a/darwin/util.m b/darwin/util.m index 84823829..fa6f5994 100644 --- a/darwin/util.m +++ b/darwin/util.m @@ -1,6 +1,7 @@ // 7 april 2015 #import "uipriv_darwin.h" +// TODO do we really want to do this? make it an option? void disableAutocorrect(NSTextView *tv) { [tv setEnabledTextCheckingTypes:0];