nstextview
How to implement a custom Focus Ring in drawRect for NSTextField or NSTextVew
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[详细]
2023-04-10 13:12 分类:问答cocoa/osx - Stop NSTextView from expanding past its frame dimension
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][详细]
2023-04-10 08:41 分类:问答Scaled preview: use NSTextView, NSTextField, CATextLayer, or drawInRect?
I\'m programming a cocoa app that presents text (vertically and horizontally) centered on a projector screen.[详细]
2023-04-05 08:45 分类:问答At what level is selection handled in the Cocoa text system?
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[详细]
2023-03-30 07:06 分类:问答NSTableView update/reload problem
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.[详细]
2023-03-30 04:28 分类:问答Printing out Log style in Xcode interface builder
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[详细]
2023-03-29 15:26 分类:问答Automatic Link Detection not working in NSTextView after programmatically setting text
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.[详细]
2023-03-28 04:09 分类:问答Custom Data Detectors in NSTextView (similar to the recognition of dates)
Is there a way to implement custom data detectors in NSTextView (like the one that recognizes dates or telephone numbers)?[详细]
2023-03-28 02:14 分类:问答NSPopover below caret in NSTextView
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[详细]
2023-03-26 04:55 分类:问答NSTextView background not resizing appropriately
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.[详细]
2023-03-24 15:01 分类:问答