Re: Need serious help with NSOutlineView
Re: Need serious help with NSOutlineView
- Subject: Re: Need serious help with NSOutlineView
- From: Matt Neuburg <email@hidden>
- Date: Fri, 18 Mar 2005 06:09:33 -0800
On Fri, 18 Mar 2005 10:17:04 +0000, <email@hidden> said:
> I think I got spoiled by bindings or something, because I'm having a helluva
> time wrapping my head around NSOutlineView. I've read the docs, I've searched
> the archives, searched for tutorials, but I'm just not getting it.
>
> My interface consists of a table view and an outline view. the contents of
> the outline view depend on the currently selected row of the table view; as
> the object that represents a row in my table view contains an ivar of type
> NSArray, of which each element of this array will function as a root node in
> the outline view. Each "root node" contains an ivar of type NSArray, of which
> each element of this array is a leaf node.
>
> My table view is set up using bindings to keep track of each object, but the
> bindings don't play a part in this because the one ivar that isn't bound to
> anything is the ivar that will serve as the source for my outline view. I
> have an AppController set to be the delegate and datasource for my outline
> view, and it also has an outlet for the table view, so I can easily get the
> object currently selected in the table view, so i can get an array of "root
> nodes", but even after poring over all the documentation and examples and code
> on the net, I'm still clueless as to how to implement each datasource method
> for NSOutlineViewDataSource.
>
> Any help, be it on or off list, would be greatly appreciated. I'll keep
> working on it as well. The example found in
> /Developer/Examples/AppKit/OutlineView I have looked at and I'm still
> scratching my head trying to make sense of how to "convert" it to my data
> model. I'm using custom objects created elsewhere in the application, it's
> creating them programmatically using the file system.
<http://www.cocoabuilder.com/archive/message/2002/9/9/55516>
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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