persistentObjectForItem in NSOutlineView
persistentObjectForItem in NSOutlineView
- Subject: persistentObjectForItem in NSOutlineView
- From: Timothy Larkin <email@hidden>
- Date: Sun, 12 Sep 2004 21:10:51 -0400
To make the expansion state of an outline persistent, we need to
implement outlineview: persistentObjectForItem:item and
outlineview:itemForPersistentObject:object. Having done this, I note
that the first method is called whenever an item is expanded, and
persistent object descriptors are stored in the preferences plist for
each expanded item.
autosaveName is defined, and autosaveExpandedItems is set to YES.
As far as i can make out from the documentation, these are the only
requirements for expansion restoration to work.
However, when the outline is recreated the next time the application is
run, not only does the expansion state fail to be reproduced,
outlineview:itemForPersistentObject:object is not even called.
Is there some subtle point here I'm missing?
Tim Larkin
Abstract Tools
_______________________________________________
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