Scrollbar doesn't initially update
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.