Just a coder
Just a coder

Reputation: 16730

How do I get NSOutline view to work with bindings?

My goal is to develop a verry simple file browser using NSOutline view. I already know how to do this normally, but I am totally lost on how to set this up using the binding approach.

When using regular approach i can easily find out the children that are in the parent directory by writing code in the delegate call methods to find the file/folder count and names.. however, with the binding approach, I have to build the NSMutableArray before hand.. so, is there some where i can determine the Child contents of a folder? Any help/direction appreciated.

Upvotes: 1

Views: 124

Answers (1)

Besi
Besi

Reputation: 22939

I have created a little sample project which does just that.

  • Display a list of items
  • Edit the items in a master-detail fashion
  • Remove and add items
  • Usage of bindings along with a model class (Book).

Check out besi/mac-quickies on github. Most of the stuff is either done in IB or can be found in the AppDelegate

screenshot

Upvotes: 1

Related Questions