• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fastest way to "ExpandAll" in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Fastest way to "ExpandAll" in NSOutlineView
      • From: Corbin Dunn <email@hidden>
References: 
 >Fastest way to "ExpandAll" in NSOutlineView (From: Sanford Selznick <email@hidden>)
 >Re: Fastest way to "ExpandAll" in NSOutlineView (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Fastest way to "ExpandAll" in NSOutlineView
  • Next by Date: Re: crash when using notification center and self
  • Previous by thread: Re: Fastest way to "ExpandAll" in NSOutlineView
  • Next by thread: Re: Fastest way to "ExpandAll" in NSOutlineView
  • Index(es):
    • Date
    • Thread