Top "Nstextview" questions

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

How to get height for NSAttributedString at a fixed width

I want to do some drawing of NSAttributedStrings in fixed-width boxes, but am having trouble calculating the right height they'll …

cocoa nstextview appkit nsattributedstring
'sizeWithFont:constrainedToSize:lineBreakMode:'is deprecated:

Converting a project from iOS5.0 to iOS7 / iOS6 on Xcode 5. The code below is giving a compile time warning: 'sizeWithFont:…

ios xcode uikit nstextview
Change the text of a NSTextView programmatically

I can't find any parameter that seems to be related with the text value showed in a NSTextView. I understood …

objective-c macos cocoa nstextview
NSString boundingRectWithSize slightly underestimating the correct height - why?

I'm attempting to resize a text field / view automatically depending on its current width. In other words I want the …

objective-c nstextfield nstextview
Append to NSTextView and scroll

OK, what I need should have been very simple. However, I've looked everywhere and I'm not sure I've found something …

objective-c macos cocoa nstextview
NSTextField or NSTextView?

Could someone explain to me what are the main differences between NSTextField and NSTextView? I know that NSTextView has more …

cocoa macos text nstextfield nstextview
How does line spacing work in Core Text? (and why is it different from NSLayoutManager?)

I'm trying to draw text using Core Text functions, with a line spacing that's as close as possible to what …

objective-c macos nstextview core-text nslayoutmanager
NSTextView value changed

I'm pretty new to mac development (coming from a web and iOS background) and I can't work out how I …

events callback nstextview
NSTextView syntax highlighting

I'm working on a Cocoa text editor which uses an NSTextView. Is it possible to change the color of certain …

objective-c cocoa syntax-highlighting nstextview
How to find the text in an NSTextView?

I need to find the text in an NSTextView, and save it to a file. I can do the saving …

objective-c cocoa nsstring nstextview