Re: Ideas to implement a view displaying a graph
Re: Ideas to implement a view displaying a graph
- Subject: Re: Ideas to implement a view displaying a graph
- From: Uli Kusterer <email@hidden>
- Date: Sun, 16 Apr 2006 19:23:16 +0200
Am 16.04.2006 um 18:45 schrieb Damien Bobillot:
I wonder if it's a good idea to use the NSControl-NSCell paradigm :
a big NSControl for the drawing space and NSCell for the nodes. Or
perhaps use a NSView for the drawing space and other NSView for
each node, or only one NSView with custom drawing of the content
(node+link).
Unless NSCell provides functionality you're interested in (i.e. you
want buttons, sliders, image well or edit fields as your nodes), I
wouldn't use it in this case. IMHO NSCell would be overkill. Of
course it's different if you may also want to use your nodes in an
NSMatrix or NSControl...
Any ideas ? If someone has already worked on a vector graphics
editor, I'm also interested, as I think it's almost the same
structure.
Have you checked out the Sketch sample in /Developer/Examples/ ?
That does it pretty much the way I'd expect an app to do it.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden