Re: Fastest way to "ExpandAll" in NSOutlineView
Re: Fastest way to "ExpandAll" in NSOutlineView
- Subject: Re: Fastest way to "ExpandAll" in NSOutlineView
- From: Sanford Selznick <email@hidden>
- Date: Tue, 6 Jun 2006 10:47:21 -0700
At 9:51 AM -0700 6/6/06, Corbin Dunn wrote:
1. Subclass NSOutlineView and add an iVar named "_disableTiling".
Write accessors for it.
2. Override tile and do something like this:
- (void)tile {
if (_disableTiling) return;
[super tile];
}
3. Before your loop code write:
[ov disableTiling];
// loop to expand
[ov enableTiling];
(or something like that).
That should speed things up. Note that I am aware of this particular
issue in NSOutlineView and will address it.
Thank you for your response.
I tried this. I put a breakpoint in tile, and tile is never called
during expand or collapse. Although tile is called at other times,
like when the window is opened.
Since tile is never called it does not appear that this will have any effect.
Any ideas?
Thanks,
Sanford
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden