More NSTextView work.
This commit is contained in:
parent
ea6e903069
commit
11fe5deb73
|
@ -0,0 +1,91 @@
|
|||
NSScrollView
|
||||
backgroundColor NSCalibratedWhiteColorSpace 1 1
|
||||
drawsBackground 1
|
||||
borderType 2
|
||||
documentCursor <NSCursor: 0x600000056440>
|
||||
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 = "<NSCursor: 0x6000000599e0>";
|
||||
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
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
NSScrollView
|
||||
backgroundColor NSCalibratedWhiteColorSpace 1 1
|
||||
drawsBackground 1
|
||||
borderType 2
|
||||
documentCursor <NSCursor: 0x600000056380>
|
||||
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 = "<NSCursor: 0x600000059920>";
|
||||
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
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
NSScrollView
|
||||
backgroundColor NSNamedColorSpace System controlBackgroundColor
|
||||
drawsBackground 1
|
||||
borderType 0
|
||||
documentCursor <NSCursor: 0x600000056560>
|
||||
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 = "<NSCursor: 0x6000000599e0>";
|
||||
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
|
||||
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue