Questions tagged [nstreecontroller]

The NSTreeController is a bindings compatible controller that manages a tree of objects. It provides selection and sort management. Its primary purpose is to act as the controller when binding NSOutlineView and NSBrowser instances to a hierarchical collection of objects. The root content object of the tree can be a single object, or an array of objects.

The NSTreeController is a bindings compatible controller that manages a tree of objects. It provides selection and sort management. Its primary purpose is to act as the controller when binding NSOutlineView () and NSBrowser () instances to a hierarchical collection of objects. The root content object of the tree can be a single object, or an array of objects.

132 questions
0
votes
1 answer

NSArrayController "Content set" bound to NSTreeController issue

I have an NSOutlineView bound to a NSTreeController and a CoreData Datamodel. NSOutlineView displays his data properly. A NSTableView's cell values bound to a NSArrayController, displaying data from CoreData. NSTableview displays his data properly…
Boris
  • 360
  • 2
  • 12
0
votes
2 answers

NSTreeController addChild: does not call newObject but add: does (Class/Object mode)

I noticed that my subclass os NSTreeController runs newObject only when the add: method is called but never for addChild: I found this thread discussing the very same issue. Though in this case the user is using the tree controller in Core Data…
CodeSmile
  • 64,284
  • 20
  • 132
  • 217
0
votes
1 answer

NSTreeController KVO issue

I have a NSTreeController which array is bound to a "items" (custom) property of an NSArrayController subclass. As the tree controller is not bound to the selection of the NSArrayController I need to make sure to let the tree controller know that…
diederikh
  • 25,221
  • 5
  • 36
  • 49
0
votes
1 answer

Can you pass a TreeController between views?

I have a standard Master-Detail Interface and I'm using Coredata and cocoa bindings. The Master list uses a NSOutlineView and a NSTreeController, these items remain static but different details views are swapped in and out. So, how do I set the…
Cory
  • 2,302
  • 20
  • 33
0
votes
1 answer

NSComboBox with bindings to NSTreeController

I have a NSTreeController/NSOutlineView with children and a NSComboBox. I would like to only show the top level objects in the combobox and not the children. Can't figure out how to do this. Any suggestions?
Mikael
  • 3,572
  • 1
  • 30
  • 43
0
votes
2 answers

Is it possible to bind an NSTreeController to an NSOutlineViewDataSource?

I have some hierarchical data model that I'd like to present in an NSOutlineView. I'm binding a tree controller to the outline view to provide data and to handle selection and binding to other views. However, I only want to show only part of the…
David Stein
  • 866
  • 7
  • 21
0
votes
1 answer

Custom NSViewController representedObject doesn't update when view selection changes

I've got a custom NSViewController that's also an NSOutlineViewDataSource. I also have a window with an NSOutlineView bound to an instance of my view controller as the data source, and the NSOutlineView bound to the view: property of the custom view…
David Stein
  • 866
  • 7
  • 21
0
votes
2 answers

How to efficiently flatten a NSOutlineView?

I have a NSOutlineView which is binded to my NSTreeController. The content of the NSTreecontroller (myTreeController) is set with data using the command: [self.myTreeController setContent:self.myArrayOfFiles]; The content of the array consists…
0
votes
1 answer

How to NOT display certain nodes in outline view?

In Apple's Mail app, in the outline view on the left, an inbox or a folder is shown in hierarchy but the emails in the folder or email is not shown at all. I would like to reproduce this feature. I have an outline view connected to a tree…
A A
  • 147
  • 1
  • 2
  • 8
0
votes
2 answers

Automatically update NSOutlineView upon model changes without NSTreeController

If I changed my NSOutlineView from using bindings and an NSTreeController to having a data source and a delegate, how would I automatically update the NSOutlineView, if my model tree changes? Should I observe the childNodes property of every single…
DrummerB
  • 39,814
  • 12
  • 105
  • 142
-1
votes
2 answers

Cocoa bindings - Sorting error for a specific column

I use a NSOutlineView bound to a NSTreeController. I successfully managed to sort all columns of the view, except one! This column displays a button that is enabled if the binaryData field is not nil. The binaryData field in the model is a…
-1
votes
1 answer

KVC Accessor Patterns for Trees

In this document, Apple describes Accessor Patterns for To-One and To-Many properties. To-Many properties cover Indexed and Unordered collections. Which brings me to the question: Is there a different Accessor Pattern for tree structures, or should…
insys
  • 1,288
  • 13
  • 26
1 2 3
8
9