Re: NSLayoutManager's setDefaultAttachmentScaling: not working in custom PDF NSContexts.

2012-01-31 Thread Ken Ferry
On Jan 31, 2012, at 5:57 AM, Ken Ferry wrote: > On Jan 30, 2012, at 3:58 PM, Gus Mueller wrote: > >> >> On Jan 30, 2012, at 2:22 PM, Michael Nickerson wrote: >> >>> Hmm, I don't have an answer for you, but I looked at the code. I did a >>> little subclassing of NSLayoutManager, and it looks

Re: NSLayoutManager's setDefaultAttachmentScaling: not working in custom PDF NSContexts.

2012-01-31 Thread Ken Ferry
On Jan 30, 2012, at 3:58 PM, Gus Mueller wrote: > > On Jan 30, 2012, at 2:22 PM, Michael Nickerson wrote: > >> Hmm, I don't have an answer for you, but I looked at the code. I did a >> little subclassing of NSLayoutManager, and it looks like the text attachment >> cell is just ignoring the s

Re: NSLayoutManager's setDefaultAttachmentScaling: not working in custom PDF NSContexts.

2012-01-31 Thread Gus Mueller
On Jan 30, 2012, at 2:22 PM, Michael Nickerson wrote: > Hmm, I don't have an answer for you, but I looked at the code. I did a > little subclassing of NSLayoutManager, and it looks like the text attachment > cell is just ignoring the size given to draw the image in and drawing it full > size.

Re: NSLayoutManager's setDefaultAttachmentScaling: not working in custom PDF NSContexts.

2012-01-30 Thread Aki Inoue
Sounds like a bug. File a bug report. Thanks, Aki On Jan 29, 2012, at 10:03 AM, Gus Mueller wrote: > I have an issue where using NSLayoutManager's > setDefaultAttachmentScaling:NSImageScaleProportionallyDown doesn't seem to > work if I setup my own NSGraphicsContext + CGPDFContext. > > The

Re: NSLayoutManager's setDefaultAttachmentScaling: not working in custom PDF NSContexts.

2012-01-30 Thread Michael Nickerson
On Jan 29, 2012, at 1:03 PM, Gus Mueller wrote: > I have an issue where using NSLayoutManager's > setDefaultAttachmentScaling:NSImageScaleProportionallyDown doesn't seem to > work if I setup my own NSGraphicsContext + CGPDFContext. > > The problem is that large inline images are not scaled dow

NSLayoutManager's setDefaultAttachmentScaling: not working in custom PDF NSContexts.

2012-01-29 Thread Gus Mueller
I have an issue where using NSLayoutManager's setDefaultAttachmentScaling:NSImageScaleProportionallyDown doesn't seem to work if I setup my own NSGraphicsContext + CGPDFContext. The problem is that large inline images are not scaled down when drawn like they would be in an NSTextView. Text aft