Questions tagged [nsoutlineview]

NSOutlineView is a subclass of NSTableView that uses a row-and-column format to display hierarchical data that can be expanded and collapsed, such as directories and files in a file system. A user can expand and collapse rows, edit values, and resize and rearrange columns.

Like a table view, an outline view does not store its own data, instead it retrieves data values as needed from a data source to which it has a weak reference (see Communicating With Objects). See the NSOutlineViewDataSource protocol, which declares the methods that an NSOutlineView object uses to access the contents of its data source object.

An outline view has the following features:

  • A user can expand and collapse rows.

  • Each item in the outline view must be unique. In order for the collapsed state to remain consistent between reloads the item's pointer must remain the same.

  • The view gets data from a data source (see the NSOutlineViewDataSource protocol).

  • The view retrieves only the data that needs to be displayed.

659 questions
0
votes
1 answer

Custom NSMangedObject accessor crashed NSOutlineView

I am thinking this is a bug in Core Data but before I file a bug report, I want to be sure it is not just me being stupid. I set up an NSOutlineView to access the data of 5 different Core Data entities. Each entity's data is accessed with a…
0
votes
1 answer

NSOutlineView with 2 columns

I have an NSOutlineView working. So far so good. Now I'm trying to add checkbox to each row and not having a lot of luck. If I create a new column in position 0 and drag a checkbox control into it, I do get a checkbox control in the first column,…
Roger Gilbrat
  • 3,755
  • 5
  • 34
  • 58
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
1 answer

NSOutlineView cells are offset

I'm trying to show a list in a view based NSOutlineView in an NSPopover. When showing the list, it results in something like this: That's not what I set up in IB: I'm using a standard non-subclassed NSTableCellView with an NSImageView and an…
DrummerB
  • 39,814
  • 12
  • 105
  • 142
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

NSOutlineview customizations

I need to change the font color of the grouped items titles in a NSOutlineview , and hide the show/hide buttons when you hover your mouse over to the right hand side of a grouped item. I could not find how to do this on any of Apple documentation.…
rustylepord
  • 5,681
  • 6
  • 36
  • 49
0
votes
1 answer

Mouse Event in Outline View

I have a window which contains a split view. One of the "splits" contains an outline view. I have a window controller (which is the file owner for the window's XIB). The window controller is the delegate and data source of the outline view. When I…
A A
  • 147
  • 1
  • 2
  • 8
0
votes
1 answer

Refreshing an NSCell when another NSCell is changed

I have two columns in my NSOutlineView. One is a Text and image cell (similar to the class in the DragNDropOutlineView Apple sample code). Next to that is a custom NSCell subclass called "XFToggleCell" that is used to display a visibility icon…
Todd Burch
  • 200
  • 8
0
votes
1 answer

Cannot set initial state for checkboxes in NSOutlineView

I have outline view each element of which is checkbox. I want to set initial states for these checkboxes as provided by some business-logic. I am trying to do it in appropriate (I hope) method of NSOutlineViewDelegate: - (NSView…
Hohol
  • 303
  • 1
  • 2
  • 8
0
votes
1 answer

NSOutlineView - how does it get called?

In an NSTableView, there is a method called reloadData. Is there something similar in an NSOutlineView? I am using an NSOutlineView without a tree controller. Thanks!
Kevin
  • 1,469
  • 2
  • 19
  • 28
0
votes
1 answer

How to make the group header different than the table entries in NSOutlineView

Is there any way to use a different column for the first column in the group? By default it uses the same as the "Group Title" (the one with the "expand" triangle). E.g. I want to bind the "Group" row to departmentTitle and the first column of the…
david
  • 3,553
  • 4
  • 28
  • 39
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
1 answer

How can i disable sorting in outline view in xcode 4?

I'm using Nsoutline view with core data and array controller , how can i disable sorting array ?
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 2 3
43
44