|
OutlineViewTutorial
The objective of this page is for the reader to create an CocoaSharp Xcode project that mainipulates a number of Cocoa's NSOutlineView control.
System Requirements:
1.0 IntroductionThe OutlineView (i.e. TreeView) is a very, very common user interface control used to manage heirarchical data structures. Unlike the .NET WinForms where the TreeView takes care of the management of TreeNodes, Cocoa's approach places that burden on a DataSource class that you need to write. In addition, 'you' also need to write the node defintion classes. Have no worries because I fully intend to walk you through how to do all that. The application you are about write during this tutorial will be an Xml document viewer...and its feature set will go thru phases. Why? Because I'm still learning some of these Cocoa Development nuances and as I learn them I'll be updating the tutorial. The first phase of the application has the software reading an Xml file at a fixes location using C#'s System.Xml classes to fully load an OutlineView control. 2.0 Create Outline View Xcode Projecttbd..... 3.0 Setup the User Interfacetbd..... 4.0 Develop your custom DataSourceThe OutlineView requires the object that represents its data source implement the NSOutlineViewDataSource. (Note: Why wouldn't we start making C# interface classes for all these types of Cocoa Protocols in the CocoaSharp assembly. That way we can take advantage of our ....strongly typed programming langauge...and see these errors at compile type.) |
Sign in to add a comment