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
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.
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.
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.
I\'m trying to implement typewriter scroll开发者_Python百科ing in my Cocoa text editor, keeping the insertion point centered vertically in its scrollview.
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.
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
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
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.
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