Drawing Graphs in Cocoa
Drawing Graphs in Cocoa
- Subject: Drawing Graphs in Cocoa
- From: Taylor Barstow <email@hidden>
- Date: Mon, 28 Jul 2008 14:47:32 -0400
Hi,
I'm working on an application where I need to draw graphs in Cocoa.
I'm not talking about data plotting, I'm talking about creating
visualizations for directed, acyclic graphs in the computer science /
discrete math sense (where a "graph" is a collection of nodes and
edges).
Does anyone know of any abstractions on top of the low level Cocoa
drawing APIs that support this? If not, is anyone interested in
working with me on a mini project to create an open source library to
do this? I would be able to lead the project, and I'd be looking to
get it started in the next few weeks.
The basic elements of the API would be:
- a simple way to represent a graph in memory, and perhaps in
persisted form (may already exist)
- a NSView subclass to draw the graph
I want the end programmer to be able to pass custom context
information along with each graph node, and I want to make good use of
delegates when writing the view so the end programmer can use that
context information to customize the outcome (I'm thinking of things
like colors, size of nodes, text labels, etc). I also want to
abstract some aspects of user interaction with the graph, such as
observing clicks on nodes and edges.
As I said above, right now I am only interested in directed, acyclic
graphs. However, for the long term, I see other needs arising in the
community, so I expect the API to evolve over time.
Thanks,
Taylor
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden