nstextview
How to paint background of specific range of text in NSTextView
This is not a specific bug, its more about not knowing how to do something. I\'ve an NSTextView and I need to paint the background of specific rang开发者_如何学编程es of text when the user clicks on[详细]
2022-12-30 03:28 分类:问答How would one make an Xcode style console window?
I am making a Haskell editor with Cocoa, and it would be useful to support some in-application text output. Even better would be supporting some text input.[详细]
2022-12-29 10:41 分类:问答How to resize NSTextView according to its content?
I am trying to set an attributed string within NSTextView. I want to increase its height based on its content, initially it is set to some default value.[详细]
2022-12-27 17:17 分类:问答Create hyperlink to some text in NSTextView
I can create a hyperlink to some url in an NSTextView using the \"Link Panel\". Or I can add a link manually using the NSLinkAttributeName attribute of NSAttributedString.[详细]
2022-12-27 00:34 分类:问答NSTextView's adjustScroll method
I\'m trying to implement typewriter scroll开发者_Python百科ing in my Cocoa text editor, keeping the insertion point centered vertically in its scrollview.[详细]
2022-12-24 05:02 分类:问答How can I make the Tab key move focus out of a NSTextView?
I\'m using an NSTextView to allo开发者_JS百科w multi-line input. However, due to the nature of my app, users will be more comfortable moving to the next input element when they press TAB.[详细]
2022-12-23 19:47 分类:问答Multiple undo managers for a text view
I\'ve a text view that gets its content from an attributed string stored in a model object. I list several of these model objects in a drawer and when the user clicks on one the text view swaps its co[详细]
2022-12-23 10:27 分类:问答NSTextField or NSTextView?
Could someone explain to me what are the main differences between NSTextField and NSTextView? I know that NSTextView has more features and is usually used for longer texts, and NSTextField is usually[详细]
2022-12-22 08:56 分类:问答NSTextView determine if NSTextAttachment is present
in my MyDocument class I need to determine if there is an image in my NSTextView, so I can prevent users fr开发者_如何学Com saving documents as RTF although RTF doesn\'t support images.[详细]
2022-12-21 03:42 分类:问答NSTextView rounded border / stroke in Cocoa
I am subclassing NSTextView and over-riding the drawRect method in order to draw an NSBezierPathWithRoundedRect around the textview, however - as it has rounded edges, they interfere with the text in[详细]
2022-12-20 19:27 分类:问答
加载中,请稍侯......