• 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: NSOutlineView: expand all items. How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView: expand all items. How?


  • Subject: Re: NSOutlineView: expand all items. How?
  • From: email@hidden (Stefan Haller)
  • Date: Wed, 2 Nov 2005 18:08:08 +0100
  • Organization: Ableton

Luc Vandal <email@hidden> wrote:

> int nRows = [treeView numberOfRows];
>
> for(int i=0;i<nRows;i++)
> {
>      if( [treeView isExpandable:[treeView itemAtRow:i]] )
>          [treeView expandItem:[treeView itemAtRow:i]];
> }
>
> I guess that by expanding an item, the number of rows changes and
> that results in having items that were not expanded. What's the
> proper way to accomplish this?

Just do the loop backwards.


--
Stefan Haller
Ableton
http://www.ableton.com/
 _______________________________________________
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

References: 
 >NSOutlineView: expand all items. How? (From: Luc Vandal <email@hidden>)

  • Prev by Date: Accessors for 2D Arrays - thanks for help
  • Next by Date: Two questions on CoreData
  • Previous by thread: Re: NSOutlineView: expand all items. How?
  • Next by thread: Re: NSOutlineView: expand all items. How?
  • Index(es):
    • Date
    • Thread