• 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
NSOutlineView not clearing data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView not clearing data


  • Subject: NSOutlineView not clearing data
  • From: Keith Wilson <email@hidden>
  • Date: Sat, 11 Feb 2006 00:43:52 +1100

I have a master detail setup where the selected object in a TableView triggers display in an OutlineView

The master consists of an NSArrayController that controls an NSTableView

The detail is a NSTreeController and an NSOutineView.

When I select an object in the master table the Outline view is generated. OK but I have 2 problems.

Problem 1.
If I have expanded some of the items in the OutlineView and then select another object in the master view then only the first object is displayed in the OutlineView and the rest of the expanded data (from the previous selectedObject) is not cleared from the OutlineView.


Problem 2
When I select an item in the master table I would like to automatically expand (say) the first 3 levels when the OutlineView is displayed.


I know how to do all this by subclassing the OutlineView (been there done that) but how much of it can I do just in Interface Builder ?

Keith from DownUnder.


_______________________________________________ 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
  • Follow-Ups:
    • Re: NSOutlineView not clearing data (SOLVED)
      • From: Keith Wilson <email@hidden>
  • Prev by Date: Re: remove blue highlight in NSTextField
  • Next by Date: Re: NSButtonCell and title binding
  • Previous by thread: NSThread creation cost
  • Next by thread: Re: NSOutlineView not clearing data (SOLVED)
  • Index(es):
    • Date
    • Thread