0
私は半日でHow to disable word-wrap of NSTextView? に答えを試しましたが、運がなかった。答えはちょっと散らかっていて、本当に混乱していました。NSTextViewのワードラップを無効にできません
私はこのコードを持っている:
@IBOutlet var display: NSTextView!
func applicationDidFinishLaunching(aNotification: NSNotification) {
// Insert code here to initialize your application
let LargeNumberForText: CGFloat = 1.0e7
display.textContainer!.containerSize = NSMakeSize(LargeNumberForText, LargeNumberForText)
display.textContainer!.widthTracksTextView = false
display.horizontallyResizable = true
display.autoresizingMask = [.ViewWidthSizable, .ViewHeightSizable]
}
私はステップを逃しましたか?