• 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
Autoresize fails in a Scroll View!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autoresize fails in a Scroll View!


  • Subject: Autoresize fails in a Scroll View!
  • From: Charles Jolley <email@hidden>
  • Date: Thu, 20 Sep 2001 08:10:44 -0500

Hi everyone,
I've discovered what appears to be a bug in NSScrollView, but maybe I'm using it wrong, so please give me some feedback. Here is what I'm doing:

I have an NSScrollView, with an NSClipView and an NSTextView for the documentView. The NSTextView is set to autoresize both vertically and horizontally. When I first create this whole structure, changing the size of the NSScrollView causes the NSTextView to change as well.

I change the bounds in the NSClipView to perform zooming, ala the TextEdit sample code. After I change the bounds for the NSClipView, however, the automatic resizing stops working. The tracing I have done seems to indicate that the scroll view stops sending -resizeSubviewsWithOldSize: to the clip view.

Any ideas why this happens? Is there a work around for it?

Thanks,
-Charles


  • Prev by Date: Re: Aqua Interface Guidelines & Close Window location
  • Next by Date: Re: Aqua Interface Guidelines & Close Window location ?
  • Previous by thread: Rép : NSWindowController & NSDocument
  • Next by thread: NSTableView problems [Java]
  • Index(es):
    • Date
    • Thread