Re: Bug in NSClipView/NSScrollView?
Re: Bug in NSClipView/NSScrollView?
- Subject: Re: Bug in NSClipView/NSScrollView?
- From: Brock Brandenberg <email@hidden>
- Date: Sun, 25 May 2003 14:19:11 -0500
>
I want to programmatically scroll an NSScrollView, which contains an
>
NSTableView. The docs seem to indicate that the way to do this is use
>
the scrollToPoint: method of NSClipView. (Note that the scrolling
>
methods of NSTableView are not what i need here.)
>
>
I have done this, and it seems to work, except that the NSScroller is
>
not positioned correctly. It is always returned to the top position.
>
The document is correctly positioned in the scroll view.
>
>
I am making this call straight after a call to reloadData of the
>
NSTableView. Could this be the problem? Is the scroller being reset by
>
some asynchronous action of the data reload.
>
>
In any case, is this a bug, and does anyone know how to get around it?
Drew,
It the NSTableView just one of several items in a view inside of another
NSScrollView? If so, then the reloadData shouldn't be affecting the
outermost NSScrollView. It should only affect the one that's part of the
NSTableView. Or are you trying to take pixel-level control of the
NSScrollView that is part of the NSTableView?
You can try messaging NSScrollView's reflectScrolledClipView: method, but it
should have been called for you by the scrollToPoint: method of the
NSClipView. Have you overridden anything that could have broken the
notifications between the NSScrollView and its NSClipView?
Brock Brandenberg
----- industrial design @ www.bergdesign.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.