NSOutlineView expand by default?
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.