NSOutlineView behavior
NSOutlineView behavior
- Subject: NSOutlineView behavior
- From: Kyle Mandli <email@hidden>
- Date: Thu, 12 Jul 2001 15:15:15 -0500
I have a NSOutlineView that holds something like a list view in the
finder except that you cannot select folders but only a certain type of
file that is displayed. If a large number of files and folders are
being displayed if the user clicks on a folder that cannot be selected
through the delegate call:
- (BOOL)outlineView:(NSOutlineView *)outlineView
shouldSelectItem:(id)item
Unfortunately the OutlineView seems to call scrollRowToVisible: whenever
this happens which then leaves the user possible way off of where they
were before. I have stepped through my code about a dozen times and I
never call scrollRowToVisible: during this action and I cannot figure
out when it is called other to being after shouldSelectItem. Is this
something that can be set or is this a "feature of the NSOutlineView.
Thanks for any help in advance.
Kyle