0

How do I do badges like this attached to a NSScrollView? I don't know if it's a custom framework but it looks like a modifies NSScrollView.

ScrollView

Thanks, MCPP.

Steven Fisher
  • 44,462
  • 20
  • 138
  • 192
MCPP
  • 49
  • 2
  • 6

1 Answers1

3

It is not the scroll view that gives the effect you are after, but the NSOutlineView configured as a source list.

In order to get the badges, etc. you'll have to work on the data display, which is implemented differently if you use a cell based or a view based NSOutlineView.

Since NSOutlineView is a subclass of NSTableView you should make sure you read the documentation for both, as the NSOutlineView docs presume knowledge of the workings of its super class.

The docs for NSOutlineView will give you the initial starting point, but be prepared to do some digging of your own.

There is a demo project from Apple here, but notice that it uses an NSTreeController, which you may or may not wish to do in your own implementation.

Monolo
  • 18,205
  • 17
  • 69
  • 103