Manual binding with NSTableColumn (without NSArrayController)

I want to use bindings in a table view, but I'm not using an NSArrayController. I've tried binding an array to my NSTableColumn (I'm handling sorting/searching myself), but it doesn't work. Is there some sort of magic under the hood that NSTableView/NSTableColumn exert when bound to an NSArrayController? More importantly, is NSArrayController useful for anything other than a NSTableView?

Answers


The magic is definitely in the NSArrayController. NSArray doesn't have methods like selectedObject and such that bindings to NSTableColumn require. NSArrayController as the name suggests is the controller part of MVC where the model is an NSArray.

Secondly, NSArrayController is useful for any view that has an NSArray model backing it. Admittedly, this is usually NSTableView but it could be any view that uses the same data.


Need Your Help

openCV track object in video and obtain a better image from multiple frames

python opencv raspberry-pi

I'm working on detecting license plates with openCV, python and a raspberry pi. Most of it is already covered. What I want is to detect the ROI (Region of interest) of the plate, track it on a few ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.