Version: 1.2

Posted: 2009-07-24

Build Requirements: Xcode 3.0, Mac OS X 10.5

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample Code (“AbstractTree.zip”, 1.01M)



Description

AbstractTree is a Cocoa sample application that demonstrates how to use Core Data and Bindings with NSTreeController. The data model is intentionally simple and abstract - you can extend it to any hierarchical model suitable for your problem domain. Likewise, the user interface is minimal - just an outline view and buttons for creating and removing nodes in the tree. In addition, the project shows how to implement drag and drop for managing parent-child relationships of the Core Data content.

Document Revision History

Date Notes
2009-07-24Fixed crash that occurs when node is dragged to a descendent by adding logic to outlineView:validateDrop:proposedItem:proposedChildIndex:.
2008-03-17Fixed a typo in the definition of a leaf node.
2007-12-21Using NSTreeController with NSOutlineView, Bindings, and Core Data.