• 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
Re: NSOutlineView autosaving of expanded/collapsed state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView autosaving of expanded/collapsed state


  • Subject: Re: NSOutlineView autosaving of expanded/collapsed state
  • From: Ralph Manns <email@hidden>
  • Date: Sun, 24 Feb 2008 22:35:16 +0100


Am 23.02.2008 um 23:44 schrieb Jonathan Dann:

On 23 Feb 2008, at 01:58, Ralph Manns wrote:

Hi,

is there a solution on Leopard to implement the autosaving of expanded/collapsed state of an NSOutlineView (bound to Core Data via NSTreeController).
I tried to implement outlineview:persistentObjectForItem; and outlineView:itemForPersistentObject:. But it doesnt't work, because NSTreeNode and NSManagedObject don't encode with NSKeyedArchiver.
Is there something I am missing, or couldn't state autosaving be done in Leopard without 'hacks' like in Tiger?



Hi Ralph,

I ran into this too in a non-Core Data app. I haven't found a solution better than iterating through each row in the outlineView and calling -isItemExpanded (I think that's the method) so I can use the output from this to re-exapnd the rows when I restart my app (or open the document in the case of a document-based app).

I'd welcome a better solution though!

Jon

Hi Jon,

I haven't found a solution up to now, although I tried everything. So I have to do it like you explained.

Ralph.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: NSOutlineView autosaving of expanded/collapsed state
      • From: Jonathan Dann <email@hidden>
References: 
 >NSOutlineView autosaving of expanded/collapsed state (From: Ralph Manns <email@hidden>)
 >Re: NSOutlineView autosaving of expanded/collapsed state (From: Jonathan Dann <email@hidden>)

  • Prev by Date: Re: NSimage NSImageInterpolationHigh-Low not working?
  • Next by Date: BezierPath issues
  • Previous by thread: Re: NSOutlineView autosaving of expanded/collapsed state
  • Next by thread: Re: NSOutlineView autosaving of expanded/collapsed state
  • Index(es):
    • Date
    • Thread