Adding Bindings to NSOutlineView versus a horrible hack
Adding Bindings to NSOutlineView versus a horrible hack
- Subject: Adding Bindings to NSOutlineView versus a horrible hack
- From: Brent Gulanowski <email@hidden>
- Date: Thu, 22 Jul 2004 19:17:05 -0400
Since I cannot wait for Tiger and need an outline view in an app that
is otherwise being smoothly converted to bindings, I ask this: has
anyone got free code or guidance for how to minimally add bindings
support to NSOutlineView? I'm reading mmalc's GraphicsBindings sample
and getting some general sense of what's required, but if I can shave
any time of experimentation and analysis that would be great.
If I have an array at the top level, and the items in that array act
as containers, and support KVC indexed accessors, then I have a tree
structure in my model. Would I want a tree controller subclass of
NSObjectController? I just need to work out how to propagate changes
up the tree. The controller's version of the tree could be made of
nested arrays.
My alternative was to create a subclass of NSArrayController with
outline view data source methods on it.
--
Brent Gulanowski
http://www.boredastronaut.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.