Re: Scrollbar doesn't initially update
Re: Scrollbar doesn't initially update
- Subject: Re: Scrollbar doesn't initially update
- From: johness does <email@hidden>
- Date: Tue, 15 Jul 2003 14:49:46 -0700 (PDT)
I'm not sure if this will do the trick, but the first
thing I'd try is: reflectScrolledClipView:
Call something like:
[myScrollView reflectScrolledClipView: [myScrollView
contentView]];
Checking the documentation just now, I'm pretty sure
this should do it. Yet i do not know why it's not
showing it correctly in the first place so I would
still investigate into that if I were you.
--- Christopher Corbell <email@hidden>
wrote:
>
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.
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
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.