Re: Autoresizing pictures to make them fit in NSTextView
Re: Autoresizing pictures to make them fit in NSTextView
- Subject: Re: Autoresizing pictures to make them fit in NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Tue, 8 Nov 2005 10:57:12 -0800
On Nov 8, 2005, at 8:30 AM, Bruno Blondeau wrote:
How can I mimic the following NSTextView behavior:
pictures are automatically resized to fit
if they are larger than the view size.
For a given NSTextView, this behavior is controlled by -
[NSLayoutManager setDefaultAttachmentScaling:]. The actual
implementation is in NSTextAttachmentCell; stock
NSTextAttachmentCells respect the layout manager setting, but custom
attachment cells might not. Is that what you wanted to know?
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden