I have a NSAttributedString to which I am adding a NSTextAttachment. The image is 50w by 50h but I\'d like it to scale down to reflect the line height of the attributed stri
Look at subclassing NSTextAttachment and implementing the NSTextAttachmentContainer methods to return different sizes based on the text container supplied. By default, NSTextAttachment just returns the size of the image it is provided with.