• 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
NSOutlineView expand by default?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView expand by default?


  • Subject: NSOutlineView expand by default?
  • From: Chris Silverberg <email@hidden>
  • Date: Mon, 19 May 2003 06:48:12 -0700
  • Organization: Silverberg.Net

Hello everyone,

I have an NSOutlineView. I have a desire that I'd like new items to be
automatically expanded in the view if they have not been seen by the view
before. saveAutoExpandedItems is not a viable solution for me because the
contents of my NSOutlineView are dynamic.

Some people have suggested simply using 'expandItems' to do this. However,
that is really not a good solution. First, at the time I am adding the item
to the NSMutableArray that it belongs to (ie the data source), the window
may or may not exist. Second, to me it's problematic for my data source to
know about the outline view that it is assigned to. A single data source
may be used for multiple outline views and when I add items to the array I
dont know what those outline views are. (I only find out when the
outlineView calls my data source or delegate methods).

So, I guess I really need something that may not exist... a
"expandItemsByDefault" feature. But seeing as this does not exist, can
anyone recommend an approach to implement this on my own?

thanks much,
Chris
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSOutlineView expand by default?
      • From: Dix Lorenz <email@hidden>
References: 
 >[BUG] NSSelectorFromString Sometimes Lies (From: Maurice Volaski <email@hidden>)

  • Prev by Date: RE: Java bridge question
  • Next by Date: Re: RE: Java bridge question
  • Previous by thread: Re: [BUG] NSSelectorFromString Sometimes Lies
  • Next by thread: Re: NSOutlineView expand by default?
  • Index(es):
    • Date
    • Thread