Re: NSOutlineView
Re: NSOutlineView
- Subject: Re: NSOutlineView
- From: Mike Jackson <email@hidden>
- Date: Wed, 25 Jul 2001 13:22:31 -0400
on 7/25/01 1:44 AM, email@hidden wrote:
>
Mike,
>
>
NSOutlineView will not retain your objects, that is the responsibility
>
of the class you designated as your data source for the outline. You
>
must retain them in your data source by keeping them in a Cocoa object
>
(like an NSArray, NSDictionary, etc.), not in a pure Java object.
>
>
-Sandeep
>
Ok, so let me get this straight before I go off and get more confused. What
I have done is create a FileBrowser.java class that holds the NSOutlineView
Object. I have also create a DataSource.java Object that acts as the go
between from NSOutlineView and getting data from ISTLFile.java Objects. Of
these, I would like to keep the ISTLFile as a pure java code as that is used
for other pure java projects that I am working on. So if I am understanding
your reply correctly, I could have DataSource subclass NSObject.java, and
still get the data from my pure java ISTLFile Object, maybe like so:
class DataSource extends NSObject {
ISTLFile rootItem;
MEthods to get Children and other information from ISTLFile Objects....
}
Is this anywhere in the Ball Park? Thanks for the help...
--
Mike Jackson
www.infoscribe.com