nstextview
NSTextView Subclass - A4 Paper Look
I am thinking about modifying my NSTextView to look like an A4 sheet. So basically a line drawn around the textContainer, but I don\'t know how this could be d开发者_StackOverflow社区one...[详细]
2023-01-17 21:19 分类:问答NSTextView - using initWithHTML with tables
I\'m trying to format some text in NSTextView to be placed in a single line with black background. One piece of text needs to be left aligned, the other piece (but still in the same line) needs to be[详细]
2023-01-17 11:12 分类:问答Padding around an NSTextView in an NSScrollView
I\'d like to provide a few pixels of padding around an NSTextView inside of an NSScrollView. I\'ve reviewed this post and using setTextContainerInset does the trick for the left, right, and bottom mar[详细]
2023-01-13 12:08 分类:问答Search For NSAttributedString with custom attribute and Remove it? How to?
I have a placeholder string, a space character, in an NSTextView that I want to remove at a future time.My strategy is to assign the NSAttribut开发者_开发技巧edString a custom attribute and perform a[详细]
2023-01-10 07:12 分类:问答Catching TextDidChange or DidEndEditing of an NSTextView instead of an NSTextField
It seems that NSTextView does not have the notification DidEndEditing and TextDidChan开发者_高级运维ge (which both exist for an NSTextField).Is there any similar functionality I can get out of the NST[详细]
2023-01-08 09:34 分类:问答Creating a view with draggable text elements
I am trying to create a view for a kind of brainstorming application like, for example, OmniGraffle, with elements that contain textviews and can be dragged around. (Also, the should be connectable wi[详细]
2023-01-06 11:43 分类:问答Set Text in NSTextView with NSData
I have an instance of NSData that I stored from a previous run of my application. I want to set an NSTextView\'s text using this data. It is RTF and I can\'t figure out how to do this. Any ideas or su[详细]
2023-01-05 17:04 分类:问答How to disable word-wrap of NSTextView?
NSTextView开发者_JAVA百科 does word-wrap by default. How can I disable this? I\'m making a JSON code viewer, so I have to disable this.First, this document explains why and how -- https://developer.ap[详细]
2023-01-05 11:23 分类:问答Faking an NSTextField using an NSTextView to get nice coloring?
Trying to change the selected text background color for an NSTextField (we have a dark UI, and selected text background is almost the same as the text itself), but only NSTextView seems to allow us to[详细]
2023-01-04 11:06 分类:问答Getting output of a shell script in Cocoa
Is there a way that lets me run a shell script, and display the output in an NSTextView? I do not want any input from the user to the shell script at all, since is is just called to compile a buch of[详细]
2022-12-31 11:02 分类:问答