nstextview
Save contents of NSTextView as a plaintext file
I\'m sure this has been asked and answered before, but I\'m struggling to find something that does what I need.I\'m also new to Cocoa development.[详细]
2023-03-14 19:09 分类:问答NSTextView lineHeightMultiple drawing issues
By setting the lineHeightMultiple of a NSParagraphStyle that is used in a text view I\'m getting drawing artifacts when selecting text. This is reproducible in TextEdit. More specifically:[详细]
2023-03-11 10:43 分类:问答Reading a text file from desktop at app startup
I need to display the contents of a text file located on the user\'s desktop in an NSTextView at startup . My code is not working -- is it off track?[详细]
2023-03-10 05:56 分类:问答windowWillReturnFieldEditor never called for NSTextView
Per protocol ref, windowWillReturnFieldEditor should be called for any text-displaying object when it needs a field editor. Indeed, my window delegate receives a call to this meth开发者_开发问答od for[详细]
2023-03-09 16:11 分类:问答NSTextView add URL link to the selected Text?
I Have an NSTextView. 开发者_JAVA技巧I just want to add an Attribute (an NSLinkAttributeName) to the selected Text in the NSTextView...[详细]
2023-03-08 12:59 分类:问答Core Data / NSTextView breaks only after save
We have an NSTextView and some data saved about its contents in a core data Managed object context.Everything works great while the managed object context st开发者_如何学Goays in memory.However when w[详细]
2023-03-03 15:10 分类:问答NSTextView line break on character, not word
I have an NSTextView for editing a long string without spaces, but with punctuation characters. I\'d like it to wrap at whatever character falls at the end of the line instead of trying to split it in[详细]
2023-03-03 01:51 分类:问答NSTextView does not have rounded corners in spite of using setConerRadius
I h开发者_运维知识库ave NSTextView and need rounded corners for the same. Hence i tried using setCornerRadius and set the value to 10, but i don\'t see the rounded corners in my UI.[详细]
2023-03-01 14:47 分类:问答Selectable text in an NSView subclass
I was surprised to see that there was no documentation or examples of any sort on how this would be done, but I was wondering what was the best way to draw and manage selectable text in an NSView subc[详细]
2023-02-28 13:16 分类:问答Update unfocused NSTextView
This is kind of a followup on my previous question. I have an NSTextView, which updates normally (well, actually there are some bugs in which it will draw awfully slowly until you pass your mouse ove[详细]
2023-02-26 20:17 分类:问答