Re: How to make NSTreeController expand some items
Re: How to make NSTreeController expand some items
- Subject: Re: How to make NSTreeController expand some items
- From: "douglas a. welton" <email@hidden>
- Date: Sat, 17 Mar 2007 10:21:27 -0400
Steve,
If I understand NSTreeController correctly... it doesn't have a
concept of "expanded" because it's a controller, not a view. If
you're using NSOutlineView (or something like it) to display the data
managed by your NSTreeController, then wouldn't the appropriate place
to "expand" items be in the NSOutlineView (using -expandItem:)?
Alternately, is it possible for you to change your data model to have
an attribute that indicates "pre-expanded-ness"? You could then use
this attribute to indicate to your view how to handle (expand) each
item.
curiously,
douglas
On Mar 16, 2007, at 4:30 PM, Steve Israelson wrote:
I want to make my NSTreeController default to showing some items
expanded already.
Is there some way to do so?
I am using CoreData to keep a list of items to display in my
outline view.
I see this question has been asked before, but apparently there was
no public response.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden