• 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: How to make NSTreeController expand some items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make NSTreeController expand some items


  • Subject: Re: How to make NSTreeController expand some items
  • From: "douglas a. welton" <email@hidden>
  • Date: Sat, 17 Mar 2007 10:21:27 -0400

Steve,

If I understand NSTreeController correctly... it doesn't have a concept of "expanded" because it's a controller, not a view. If you're using NSOutlineView (or something like it) to display the data managed by your NSTreeController, then wouldn't the appropriate place to "expand" items be in the NSOutlineView (using -expandItem:)?

Alternately, is it possible for you to change your data model to have an attribute that indicates "pre-expanded-ness"? You could then use this attribute to indicate to your view how to handle (expand) each item.

curiously,

douglas

On Mar 16, 2007, at 4:30 PM, Steve Israelson wrote:

I want to make my NSTreeController default to showing some items expanded already.
Is there some way to do so?
I am using CoreData to keep a list of items to display in my outline view.


I see this question has been asked before, but apparently there was no public response.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >How to make NSTreeController expand some items (From: Steve Israelson <email@hidden>)

  • Prev by Date: Re: Renaming the "Cancel" button for NSOpenPanel
  • Next by Date: SSCrypto and Public Key Decryption
  • Previous by thread: Re: How to make NSTreeController expand some items
  • Next by thread: capturing a double-click on a control
  • Index(es):
    • Date
    • Thread