• 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
persistentObjectForItem in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: New ML List Software
  • Next by Date: [ANN] AMURLLoader
  • Previous by thread: Re: Equivalent to NSLocalizedStringFromTable() for working with a XML?
  • Next by thread: [ANN] AMURLLoader
  • Index(es):
    • Date
    • Thread