I want to draw a custom focus ring for my NSTextView subclass (which doesn\'t have a focus ring by default). I managed to implement it by overriding the parent NSScrollView drawRect and adding this co
Does anyone know how to stop an NSTextView from expanding past the di开发者_JAVA百科mension of its frame when the text is added beyond those dimensions?You can use [textview setVerticallyResizable:NO]
I\'m programming a cocoa app that presents text (vertically and horizontally) centered on a projector screen.
I noticed that if you hook up two NSTextViews to the same NSTextStorage object, you can select across the two and copy/und开发者_如何学运维o/etc. as if they were one. At what level is this all managed
I\'m a Cocoa Newbie. I have a cocoa application that contains an NSTableView with a text column, and a preview NSTextView field that show the selected row\'s text.
This really shouldn\'t be this hard but I\'m stumped.I just want to do something simple like write o开发者_StackOverflow社区ut a log type area in my app.Here is the problem, if I use NSTextField then
I have an NSTextView with automatic link detection enabled. When I set the text programmatically [myTextView setString:@\"http://google.com\"] it doesn\'t automatically show the link.
Is there a way to implement custom data detectors in NSTextView (like the one that recognizes dates or telephone numbers)?
I know that in order to show a popover I need an NSView, but I don\'t think that there is one associate开发者_C百科d with the caret (inside the NSTextView). Is there a way to show a NSPopover below th
I have an NSTextView inside an NSScrollView.The scroll view has the auto resize masks for height and width, so 开发者_开发技巧it changes size with the window it\'s in.