/README.md

https://code.google.com/ · Markdown · 60 lines · 30 code · 30 blank · 0 comment · 0 complexity · e2ac31c704d0bcc522443f0a4c2211bd MD5 · raw file

  1. # PSTreeGraph
  2. PSTreeGraph is a treegraph view control implementation for Cocoa Touch.
  3. This is a port of the sample code from Max OS X to iOS (iPad).
  4. WWDC 2010 Session 141, “Crafting Custom Cocoa Views”
  5. ![](http://farm7.static.flickr.com/6193/6055022105_ab831b2d8e.jpg)
  6. # Example Project
  7. There is an iPad example application to demonstrate the features of PSTreeGraph.
  8. # Status
  9. PSTreeGraph should be considered an viable solution for displaying single parent tree data in an interactive hierarchy.
  10. This project follows the [SemVer](http://semver.org/) standard. The API may change in backwards-incompatible ways before the 1.0 release.
  11. The goal of PSTreeGraph is to build a high-quality UI control designed specifically for the iPad. The inspiration / structure comes from WWDC 2010 Session 141, “Crafting Custom Cocoa Views”, an extremely valuable and informative presentation that has proven to be applicable (see this project) to other platforms.
  12. # Known Improvements
  13. See [Milestones](https://github.com/epreston/PSTreeGraph/issues/milestones?with_issues=no).
  14. There are many places where PSTreeGraph could be improved:
  15. * Use GCD to load model data asyncronously. This control uses a simple protocol implemented by each node in the data model so the control can walk the tree. This can be loaded asynchronously to avoid blocking the main thread when displaying large graphs.
  16. * Cache the bezier path used to render lines in each subtree. The bezier path used to render the lines between each node in the graph can be cached to improve performance.
  17. * Use CATiledLayer to support much larger graphs. Investigate using a CATiledLayer to further reduce drawing and memory usage, support scaling, etc. This feature will make it possible support graphs of unlimited size and scale. Rendering time and resource usage would be constant regardless of the number of nodes in the graph.
  18. # Documentation
  19. You can generate documentation with [doxygen](http://www.doxygen.org). The example project includes a documentation build target to do this within Xcode. For more details, see the [Documentation](https://github.com/epreston/PSTreeGraph/wiki/Documentation) page in this projects wiki.
  20. # Copyright and License
  21. Copyright 2010 Preston Software.
  22. Licensed under the Apache License, Version 2.0 (the "License");
  23. you may not use this work except in compliance with the License.
  24. You may obtain a copy of the License in the LICENSE file, or at:
  25. http://www.apache.org/licenses/LICENSE-2.0
  26. Unless required by applicable law or agreed to in writing, software
  27. distributed under the License is distributed on an "AS IS" BASIS,
  28. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  29. See the License for the specific language governing permissions and
  30. limitations under the License.