• 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: reloading an NSTreeController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reloading an NSTreeController


  • Subject: Re: reloading an NSTreeController
  • From: Jonathan Dann <email@hidden>
  • Date: Sun, 3 Aug 2008 10:53:56 +0100


On 3 Aug 2008, at 04:35, Gerriet M. Denkmann wrote:


On 3 Aug 2008, at 05:51, Jonathan Dann wrote:


On 1 Aug 2008, at 14:04, Gerriet M. Denkmann wrote:

But all disclosure triangels are now closed. Is there some way to reopen them to the previous state?
I have the strong feeling that I will have to handle this myself. Ok. So be it.

It's a common problem. Can I point you here:

http://www.cocoabuilder.com/archive/message/cocoa/2008/2/23/199705

Thank you very much for this link. You provide there a very clever solution, but, as you aptly put in your posting: "It uses NSTreeNode and -representedObject, so is 10.5 only."
But alas!, I need Tiger 10.4.11. (And am reluctant to use private methods which you hint at in your psoting).


Kind regards,

Gerriet.


Ah, sorry about that, I didn't realise. What you can do is have a look at


http://www.wilshipley.com/blog/2006/04/pimp-my-code-part-10-whining-about.html

Wil gives a few category methods like -objectAtIndexPath: You can (maybe) get the index path the _NSArrayControllerTreeNode and then get your real object, in which you have an isExpanded flag.

HTH,

Jonathan

http://espresso-served-here.com

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: reloading an NSTreeController
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >reloading an NSTreeController (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: reloading an NSTreeController (From: Jonathan Dann <email@hidden>)
 >Re: reloading an NSTreeController (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: NSDate to month, year etc.
  • Next by Date: Re: -[NSBrowser scrollToVisible] not making all of the column visible
  • Previous by thread: Re: reloading an NSTreeController
  • Next by thread: Re: reloading an NSTreeController
  • Index(es):
    • Date
    • Thread