• 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
NSScrollView & its width
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScrollView & its width


  • Subject: NSScrollView & its width
  • From: Knut Lorenzen <email@hidden>
  • Date: Thu, 4 Feb 2010 22:45:44 +0100

Dear List,

an NSScrollView ("Show Horizontal Scroller" in IB checked) contains an NSTextView that displays some RTFD-data, including some pictures. However, the Horizontal Scroller is not shown. BTW, TextEdit seems to behave exactly the same.

Logging [[myScrollView documentView] frame].size.width shows that it has the same value than [[myScrollView contentView] frame].size.width. Please note the difference: documentView vs. contentView. That is, it looks like the documentView does not notice the presence of pictures wider than the contentView?!

I've tried setting the documentView's frame width to the width of the largest picture. That sort of works, but as soon as the window (or the view) is resized, everything snaps back to the undesired state.

Looking forward to ideas/hints/clues/advice.

Cheers,

Knut





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSScrollView & its width
      • From: Ross Carter <email@hidden>
    • Re: NSScrollView & its width
      • From: Mark Sanvitale <email@hidden>
  • Prev by Date: [Moderator] DO NOT RESPOND: Yong Li has invited you to Dropbox
  • Next by Date: Re: Debugging (apparently) random retain loop bug (NSArrayController)
  • Previous by thread: Re: Debugging (apparently) random retain loop bug (NSArrayController)
  • Next by thread: Re: NSScrollView & its width
  • Index(es):
    • Date
    • Thread