• 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
Scrollbar doesn't initially update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scrollbar doesn't initially update


  • Subject: Scrollbar doesn't initially update
  • From: Christopher Corbell <email@hidden>
  • Date: Tue, 15 Jul 2003 13:59:20 -0700

This seems like a really simple issue but I can't seem to find
the right path to make it work...

How can one force an NSScrollView to update itself based on
changed size of its document view?

I have an NSTableView inside an NSScrollView, defined in a nib.
When it's loaded, the entire view is programatically resized (it's
in a drawer) and the table is programatically populated by its
data source.

The scroller comes up with its horizontal scrollbar blank, as if
there are no contents to scroll. I can force the scroller to update
in user-land by resizing the parent window - as soon as I do so
it appears that the scroller looks at the table and realizes it's
got scrollable content.

How can I force this to happen so that the scroller appears
correctly in the first place? A message called something like
"updateToChangedDocumentView" in NSScrollView would be
nice, but it isn't there.

Also, is this a bug?

TIA,
Christopher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Scrollbar doesn't initially update
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: Scrollbar doesn't initially update
      • From: johness does <email@hidden>
  • Prev by Date: Re: System serial number
  • Next by Date: (no subject)
  • Previous by thread: Re: DockIcon with text
  • Next by thread: Re: Scrollbar doesn't initially update
  • Index(es):
    • Date
    • Thread