Top "Nstextview" questions

NSTextView is the front-end class to MacOS's Application Kit text system.

NSTextView and NSAttributedString

I'm trying to stick an attributed string into my NSTextView, but it's just showing as plain text, no attributes. I …

cocoa nstextview nsattributedstring
How is a paragraph defined in an NSAttributedString?

I see that there is an attribute name (NSParagraphStyleAttributeName) for applying paragraph styles to text in Cocoa. Text is stored …

cocoa macos nstextview nsattributedstring
What is the best way to implement syntax highlighting of source code in Cocoa?

I'm working on Cocoa Application that should be able to analyze and highlight a source code written in such languages …

objective-c cocoa syntax-highlighting nstextview
Setting the Line Height/ Line Spacing in an NSTextView

How would I set the Line Height or Line Spacing in an NSTextView (i.e. how tall each line is, …

objective-c cocoa alignment nstextview
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, …

cocoa nstextview
Using Autolayout with expanding NSTextViews

My app consists of an NSScrollView whose document view contains a number of vertically stacked NSTextViews — each of which resizes …

cocoa osx-lion nstextview autolayout
How to disable word-wrap of NSTextView?

NSTextView does word-wrap by default. How can I disable this? I'm making a JSON code viewer, so I have to …

cocoa word-wrap nstextview
How to set up an NSTextView programmatically with explicit NSLayoutManager, NSTextStorage, NSTextContainer?

Following the apple documentation I am trying to set up a simple NSTextView via its two constructor methods. I am …

cocoa swift nstextview nslayoutmanager nstextstorage
Scrolling NSTextView to bottom

I'm making a little server app for OS X and I'm using an NSTextView to log some info about connected …

macos cocoa nstextview
NSTextView insert image in between text

Is it possible to insert an image (not a background image) into an NSTextView? Something like: Hi :) How are you? …

objective-c cocoa macos nstextview nsimage