Re: Bug in NSClipView/NSScrollView?
Re: Bug in NSClipView/NSScrollView?
- Subject: Re: Bug in NSClipView/NSScrollView?
- From: Drew McCormack <email@hidden>
- Date: Sun, 25 May 2003 23:02:27 +0200
Hi Brock,
On Sunday, May 25, 2003, at 09:19 PM, Brock Brandenberg wrote:
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?
No, it is just the scroll view associated with the table view. Not
extra subviews.
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?
Good question. This is a custom subclass that I copied from an article
in MacTech. Better check that everything is implemented correctly.
Thanks for pointing out the obvious to me.
Cheers,
Drew
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.
----------------------------------
Dr. Drew McCormack
Trade Strategist (www.trade-strategist.com)
Stock Market strategy design platform for Mac OS X.
_______________________________________________
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.