Re: NSOutlineView initial expanded status
Re: NSOutlineView initial expanded status
- Subject: Re: NSOutlineView initial expanded status
- From: Steven Kramer <email@hidden>
- Date: Mon, 23 May 2005 22:20:23 +0200
Op 23-mei-05 om 21:17 heeft Pablo Bendersky het volgende geschreven:
Hello,
I have an NSOutlineView with a DataSource, and some of the items have
an initial status of opened while others have an initial status of
closed.
How can I make NSOutlineView respect that status?
By default, the outline view will display every item collapsed, but I
did not found a proper way to make it expand the items that are saved
as expanded in the data source.
Pablo, you need to implement some more optional datasource methods. I
think you need to read this:
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSOutlineView.html#//apple_ref/doc/
uid/20000110-setAutosaveExpandedItems_>
Regards,
Steven Kramer
--
email@hidden
http://www.sprintteam.nl/
_______________________________________________
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