0
votes

Just wondering how I would achieve getting my NSOutlineView (or even a NSTableView) to display a cell (row) based on "no rows" from the Cocoa bound NSArrayController.

At the moment I have an NSOutlineView bound to an NSArrayController (I should really use a NSTreeController, but just playing around.)..

The bindings and working fine in terms of the data being bound (from CoreData). Using various sortDescriptors, it further sorts into alphabetical groups (much like the contacts app)...

When I'm trying to do is get my third cell, the one denoting "no data" / "no entries" to appear when there's nothing from the bindings.

Ay pointers would be handy.

Thanks in advance.

Ade

1
In which row do you want to show this third cell? - Willeke

1 Answers

0
votes

One solution is an extra view over the outlineview. The view is visible if the number of rows in the array/treecontroller is 0.