Re: Align attributed string to baseline

2012-12-07 Thread jonat...@mugginsoft.com
On 7 Dec 2012, at 17:40, Leonardo wrote: > Hi, > I am getting serious difficulties at drawing an attributed string within an > attachmentCell and get it aligned on the baseline. > I have a NSTextView. I add an attachment with its attachmentCell. > In the method cellFrameForTextContainer I return

Align attributed string to baseline

2012-12-07 Thread Leonardo
Hi, I am getting serious difficulties at drawing an attributed string within an attachmentCell and get it aligned on the baseline. I have a NSTextView. I add an attachment with its attachmentCell. In the method cellFrameForTextContainer I return a cell.frame.height = font.ascender - font.descen