nsattributedstring
How to highlight a text of string in objective c
I have a random string given below. ungs-und AnimationsprogrammSport / Unterhaltung: Gegen Ge I would like to display the Sport text as a bold.[详细]
2023-01-04 22:26 分类:问答How to paint background of specific range of text in NSTextView
This is not a specific bug, its more about not knowing how to do something. I\'ve an NSTextView and I need to paint the background of specific rang开发者_如何学编程es of text when the user clicks on[详细]
2022-12-30 03:28 分类:问答How to- NSAttributedString to CGImageRef
I\'m writing a QuickLook plugin. Well, everything works. Just want to try it make better ;). Thus the question.[详细]
2022-12-28 06:24 分类:问答Saving custom attributes in NSAttributedString
I need to add a custom attribute to the selected text in an NSTextView. So I can do that by getting the attributed string for the selection, adding a custom attribute to it, and then replacing the sel[详细]
2022-12-26 09:02 分类:问答Multiple undo managers for a text view
I\'ve a text view that gets its content from an attributed string stored in a model object. I list several of these model objects in a drawer and when the user clicks on one the text view swaps its co[详细]
2022-12-23 10:27 分类:问答Inserting image into NSViews pageFooter
I\'ve been trying to insert an image into the page footer of a custom NSView, so that when I print it, it will display text and an image in the footer. Here is the code that I am using:[详细]
2022-12-14 09:31 分类:问答
加载中,请稍侯......