Re: [ASVQ] Another Scroll View Question
Re: [ASVQ] Another Scroll View Question
- Subject: Re: [ASVQ] Another Scroll View Question
- From: email@hidden
- Date: Mon, 4 Mar 2002 14:21:22 -0800
How do I get the scrollers to reflect the change in size of the
contentView properly? I always have the same scrollers that either
shouldn't be there or don't scroll far enought.
I tried resizing the contentView (with setFrame + setNeedsDisplay:YES)
but it doesn't help.
Well, a quick read of the NSScrollView and NSClipView doc seems to
indicate that what you're doing *ought* to work. You might look through
that doc again to make sure you're using the objects as you're supposed
to. The clipView of NSScrollView is sort of a strange object that is
partially hidden by the API; you're not accidentally replacing it with a
subview that isn't an NSClipView or something, are you?
You might try calling
- (void)reflectScrolledClipView:(NSClipView *)aClipView
on your scrollview to see what happens. However, as the doc notes, you
should not have to call this on your own, so if you do, you're probably
doing something wrong somewhere else. You could post your code that
sets up the views, to let us all point out your many errors to you over
and over. (That was a joke :-> I just find it funny that because of
the lag of the list mechanism, many questions end up getting answered
three or four times...).
Ben Haller
Stick Software
_______________________________________________
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.