Re: Adding Bindings to NSOutlineView versus a horrible hack
Re: Adding Bindings to NSOutlineView versus a horrible hack
- Subject: Re: Adding Bindings to NSOutlineView versus a horrible hack
- From: Shaun Wexler <email@hidden>
- Date: Thu, 22 Jul 2004 20:16:26 -0700
On Jul 22, 2004, at 4:17 PM, Brent Gulanowski wrote:
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.
Last year at this time I was experimenting with the same thing, and
successfully created a tree of NSArrayControllers; one per non-leaf
node. Expensive, but it worked.
--
Shaun Wexler
MacFOH
http://www.macfoh.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.