• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Autoresizing pictures to make them fit in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Autoresizing pictures to make them fit in NSTextView (From: Bruno Blondeau <email@hidden>)

  • Prev by Date: Using NSSocketPort, NSConnection, Distributed Objects, and threads...
  • Next by Date: Re: NSButton with a delayed popup-menu?
  • Previous by thread: Autoresizing pictures to make them fit in NSTextView
  • Next by thread: Re: Data-loss issue when quitting a CoreData-document-based application
  • Index(es):
    • Date
    • Thread